1.双击项目文件,进入设计器

2.添加此行引用

  <FrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms" />

3.重新生成,则能调用forms中的库了。

更多推荐