In Visual Studio when working with .NETStandard project we have the option of specifying additional platforms using monikers like:
<TargetFrameworks>net45;net46;netstandard1.0;netstandard1.3</TargetFrameworks>
In above you can see that the class library project targets 4 platforms. When I compile the project does build. However, my concern is that a lot of code within the target net45
and net46
make use of Win32 APIs and provide utility functions for WPF based application.
I wish to isolate these utilities for projects referencing the class library (via NuGet) in Mono platforms using some macro if possible as having a WPF utility within a class library that is to be used in Mono environment would clearly lead to unprecedented consequences.
Are there any monikers that could help me explicitly specify a target for Windows-only .NET platform? Possibly from Windows 8 and upwards.