问题没有解决。。。。暂时放弃。书 精通C# 3.3.4提到使用System.Windows.MessageBox类。经搜索,发现这个类在System.Windows.Form下。 我设想,第一步在项目里添加System.Windows.Forms引用。然后第二步using ...

问题没有解决。。。。暂时放弃。
书 精通C# 3.3.4提到使用System.Windows.MessageBox类。
经搜索,发现这个类在System.Windows.Form下。
我设想,
第一步在项目里添加System.Windows.Forms引用。
然后第二步using 就可以用了。
结果在第一步,添加引用的时候失败了。
后来发现项目自带System.Windows.Forms。
不过没有MessageBox类
织梦狗教程
本文标题为:C#控制台应用(.NET Core)添加System.Windows.Forms失败(未解决)


基础教程推荐
猜你喜欢
- C# 解析XML和反序列化的示例 2023-04-14
- C#调用摄像头实现拍照功能的示例代码 2023-03-09
- Unity shader实现高斯模糊效果 2023-01-16
- Unity 如何获取鼠标停留位置下的物体 2023-04-10
- C#中的Linq to JSON操作详解 2023-06-08
- C#获取指定目录下某种格式文件集并备份到指定文件夹 2023-05-30
- C#通过标签软件Bartender的ZPL命令打印条码 2023-05-16
- c# – USING块在网站与Windows窗体中的行为不同 2023-09-20
- C#中 Json 序列化去掉null值的方法 2022-11-18
- 实例详解C#实现http不同方法的请求 2022-12-26