C#控制台应用(.NET Core)添加System.Windows.Forms失败(已解决)

20201225更新

控制台应用(.NET Framework)添加System.Windows.Forms类成功。连接如下。控制台应用(.NET Core)添加System.Windows.Forms类我是放弃了。

https://www.cnblogs.com/JuniorProgramer/p/14185811.html

==================================================================================分割线=========================================================

问题没有解决。。。。暂时放弃。

书 精通C# 3.3.4提到使用System.Windows.MessageBox类。

经搜索,发现这个类在System.Windows.Form下。

我设想,

第一步在项目里添加System.Windows.Forms引用。

然后第二步using 就可以用了。

结果在第一步,添加引用的时候失败了。

 

后来发现项目自带System.Windows。

不过没有Forms类

原文地址:https://www.cnblogs.com/JuniorProgramer/p/14083335.html