【发布时间】:2012-03-17 07:45:50
【问题描述】:
我正在尝试让这个基本的 Watin 控制台应用程序正常工作,但是我遇到了以下错误:
"Warning 1 The referenced assembly "WatiN.Core" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. consoletest"
我已确保将 STAThread] 属性应用于 main 方法 as they recommend.
这是项目的屏幕截图:Link
补充说明: 我安装了最新版本的 watin (2.1) 并且 我设法让一个类似的应用程序作为 Windows 类文件运行,但需要能够直接运行这个应用程序并查看输出,这就是我制作 Windows 控制台应用程序的原因。
任何帮助将不胜感激谢谢:)
【问题讨论】:
标签: c# reference console assemblies watin