PackageReference ignores $Platform condition #7868
Labels
Functionality:Restore
Resolution:Duplicate
This issue appears to be a Duplicate of another issue
Style:PackageReference
Type:Bug
Details about Problem
NuGet product used (VS UI | Package Manager Console | dotnet.exe):
dotnet.exe --version (if appropriate): 3.0.100-preview3-010431
VS version (if appropriate): 16.0.0 Preview 4.1 SVC1 / 15.9.8
Detailed repro steps so we can see the same problem
Try to publish x86:
dotnet publish -c Release -f netcoreapp3.0 -r win-x86
Error:
C:\Users\Me.nuget\packages\microsoft.dotnet.ilcompiler\1.0.0-alpha-27413-02\build\Microsoft.NETCore.Native.Publish.targets(65,5): error : win-x86 not supported yet. X86 runtime build fails dotnet/corert#4589 [C:\Development\Test\Test.csproj]
The commented out conditions all don't work. Either they result in both x86 and x64 builds trying to use the referenced package or neither of them using the referenced package. Either way it seems impossible to specify a PackageReference specific to the platform. Also tried adding the condition on the PackageReference rather than ItemGroup with the same results.
The text was updated successfully, but these errors were encountered: