trinsic-id / okapi

Collection of tools that support workflows for authentic data and identity management. Libraries available in most languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[dotnet] Build or publish with a given runtime identifier doesn't copy the correct platform static library

tmarkovski opened this issue · comments

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()