我正在使用C#在Excel中命令,但是当我输入时
using System.Windows.Forms
Visual Studio无法识别它
当我添加引用时,我有此错误消息
A reference to ‘System_Windows_Forms’ could not be added.
The ActiveX type library ‘…’ was exported from a .NET assembly and cannot be added as a reference.
Add a reference to the .NET assembly instead
你有什么解决办法?