Disable net461 build on non-Windows platforms #13917
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When trying to work on EF Core on Linux, the build is complicated by the fact that some projects target net461. While various workarounds exist for targeting .NET Framework on non-Windows platforms with mono, this is complicated. In addition, while the test infrastructure does contain logic to skip .NET Framework on non-Windows platforms (see
test/Directory.Build.props
), 3 projects under src do not.This PR conditionally adds net461 in these 3 projects, only when on Windows. I'm not sure what effects this could have (I don't know the EF Core build system well yet), but it does help me build the project. If this needs to be done in some other way (or is not possible for some reason), please let me know. This is not urgent.