Issue
If you have a project that multi-targets where one of Desktop is one of the target frameworks (such as <TargetFrameworks>net46;netcoreapp1.0</TargetFrameworks>), then the project will fail to build on non-windows with an error similar to:
Microsoft.Common.CurrentVersion.targets(1110,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
Expected Result
The Desktop framework should be ignored and a warning should be printed indicated the framework in question could not be built.
This is a reasonable solution since the Desktop framework is not to be available on non-Windows.
Additional Details
This also impacts solutions where some projects target Desktop and some target .NETStandard or .NETCore and projects that only target Desktop.
Issue
If you have a project that multi-targets where one of Desktop is one of the target frameworks (such as
<TargetFrameworks>net46;netcoreapp1.0</TargetFrameworks>), then the project will fail to build on non-windows with an error similar to:Expected Result
The Desktop framework should be ignored and a warning should be printed indicated the framework in question could not be built.
This is a reasonable solution since the Desktop framework is not to be available on non-Windows.
Additional Details
This also impacts solutions where some projects target Desktop and some target .NETStandard or .NETCore and projects that only target Desktop.