问题没有解决。。。。暂时放弃。书 精通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#中类与接口的区别讲解 2023-06-04
- 京东联盟C#接口测试示例分享 2022-12-02
- c#中利用Tu Share获取股票交易信息 2023-03-03
- Unity shader实现多光源漫反射以及阴影 2023-03-04
- c#读取XML多级子节点 2022-11-05
- 使用c#从分隔文本文件中插入SQL Server表中的批量数据 2023-11-24
- C# – NetUseAdd来自Windows Server 2008和IIS7上的NetApi32.dll 2023-09-20
- C#通过GET/POST方式发送Http请求 2023-04-28
- C#集合查询Linq在项目中使用详解 2023-06-09
- C# Winform实现石头剪刀布游戏 2023-01-11
