[dotnet] Build or publish with a given runtime identifier doesn't copy the correct platform static library
tmarkovski opened this issue · comments
Tomislav Markovski commented
Issuing dotnet publish -r win-x86
will copy the incorrect library to the output path. It will copy the library corresponding to the currently running OS, rather than the target OS requested by the -r
.
This happens possibly because the MSBuild conditions don't check for the RuntimeIdentifier
property, but instead detect currently running system using [MSBuild]::IsOsPlatform()