VS Code中的System.Windows.Forms程序集引用

要在visual studio代码中为c#设置我的开发框架,我想使用System.Windows.Forms引用来设置窗口。

码:

 using System; using System.Collections; using System.Windows.Forms; namespace Softwaredevelopment { public partial class Form1 : Form { public Form1() { //tbd } } } 

我收到错误:

缺少assembly参考。

我需要在project.json文件或.csproj文件中添加什么才能创建窗口。

弄清楚你可以将它添加到你的.csproj你也可以在这里找到名称和版本C:\ Windows \ assembly

    Exe netcoreapp2.0 net452     //< ----- add This line here