Disable Microsoft.IO.Redist on non-Windows Fixes #7335#7460
Disable Microsoft.IO.Redist on non-Windows Fixes #7335#7460rainersigwald merged 1 commit intodotnet:mainfrom
Conversation
|
I'm confused as to why this is failing. From the errors, it looks like, with this change, Microsoft.IO.Redist is turned on for linux/mac, but it should make it more restrictive, not less. Possible things I can think of that at least might fix something: Any thoughts? |
|
This PR changes the behavior of the output MSBuild assemblies based on the OS of the machine that builds them. That's not what we want; we want to change the runtime behavior of the same output MSBuild assemblies based on the runtime environment, so that the .NET Framework MSBuild avoids the |
|
I guess what I'm confused by is how to make a runtime check work cleanly. Say we had: You could convert that to: but that feels really messy, and I'm not sure how to make that work with the property—just ignore it? Also, I'm still confused as to why this PR would fail rather than just not doing the right thing. Any thoughts on that? |
Fixes #7335
Context
Microsoft.IO.Redist requires using a windows library, so it doesn't work on linux/mac. Users using framework on either of those platforms get exceptions.
Changes Made
Disable MS.IO.Redist on non-windows
Testing
None