首先确保是建立的.Net Framework 的console 项目,然后天健reference 应用找不到System.Windows.Forms 引用

打开对应的csproj 文件

在第一个PropertyGroup下添加
<UseWindowsForms>true</UseWindowsForms>
然后在第一个ItemGroup 下添加
<Reference Include="System.Windows.Forms" />
保存然后重新加载项目,或者退出重新打开
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
首先确保是建立的.Net Framework 的console 项目,然后天健reference 应用找不到System.Windows.Forms 引用

打开对应的csproj 文件

在第一个PropertyGroup下添加
<UseWindowsForms>true</UseWindowsForms>
然后在第一个ItemGroup 下添加
<Reference Include="System.Windows.Forms" />
保存然后重新加载项目,或者退出重新打开
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
706
330
681

被折叠的 条评论
为什么被折叠?
