Is there any possibility of referencing System.Windows.Forms
from an Sdk project (VS 2017) that targets net462
? Something like:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net462</TargetFrameworks>
...
</PropertyGroup>
<PackageReference Include="System.Windows.Forms" Version="4.0.0" />
...
Or to generalize the question: how can system libraries residing in the GAC be used from Sdk projects? According to this discussion it seems it is not something supported out-of-the-box.
The part that confuses me is that targeting net462
gives the impression that one has access to the full framework. However, if GAC assemblies are an issue, the framework is not so "full" anymore. Thus, my question.