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类。

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

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

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

 

 

我设想,

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

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

 

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

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

 

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

 

 

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

不过没有Forms类

 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2021-09-25
  • 2021-08-23
  • 2021-10-15
  • 2021-08-28
  • 2022-12-23
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-10-29
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案