Skip to main content
 首页 » 编程设计

c#之无法加载文件或程序集 Interop.IWshRuntimeLibrary

2024年02月23日38zhwl

我正在尝试使用 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 构建,如果这很重要的话。

请您参考如下方法: