Open A-And opened 6 years ago
@A-And Any chance you can zip up an example platform-specific package? I looked at the corefx instructions briefly and got intimidated.
And to be clear, you're seeing it fail with dotnet build
but succeed with msbuild.exe
?
@rainersigwald Sure thing! We built a workaround for this in CoreRT, so I'll remove the workarounds and send you an example package.
For some more clarity - .NET Native uses a similar package setup - one platform-agnostic identity package, which imports platform-specific packages at build-time. These specific packages have build artifacts, which get successfully added as build targets/props.
The same package layout doesn't seem to behave in the same way when using dotnet restore/build/publish
.
This seems to be a
Steps to reproduce
build
folder.<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
)dotnet restore
Expected behavior
The build artifact in the runtime-specific package is added to the app's nuget.g.targets/props files. This seems to be the case for MSBuild outside of .NET Core.
Actual behavior
The build artifact in the runtime-specific package is not added to the app's nuget.g.targets/props files.
Environment data
msbuild /version
output: 15.5.180.51428OS info: Microsoft Windows 10 Enterprise Version 10.0.16299 Build 16299
If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc): dotnet cli 2.1.4-preview-007237