Conditional TargetFrameworks for Multi-Targeted .NET SDK Projects on Cross-Platform Builds

added by DotNetKicks
9/19/2017 12:24:08 PM

2 Kicks, 321 Views

If you build multi-targeted .NET SDK projects on multiple platforms you're going to find out that certain targets can't be build on certain platforms. If you target NetStandard and Net45 on a Mac, Net45 is going to fail. In order to get around this you need to conditionally build per platform.