我正在尝试使用 iWshRuntimeLibrary。当我“发布”我的应用程序时,一切都很好。但是,当我尝试创建安装向导项目时,它会构建并安装我的项目,但在启动时显示以下错误。
Could not load file or assembly 'Interop.IWshRuntimeLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
单击“确定”后,应用程序似乎正常运行。
我已将我的项目设置为针对 .NET 3.5 构建,如果这很重要的话。
请您参考如下方法:
通过以下 iWshRuntimeLibrary 解决:
然后,对于 wshom.ocx:
http://msdn.microsoft.com/en-us/library/x97ae5d9(v=vs.80).aspx
