不能添加对“ Microsoft Windows Installer对象库”的引用 [英] a Reference to 'Microsoft Windows Installer Object Library' could not be added

查看:97
本文介绍了不能添加对“ Microsoft Windows Installer对象库”的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在VS2012中添加对 Microsoft Windows Installer对象库的引用。任何想法,什么可能导致此问题?

I'm unable to add reference to 'Microsoft Windows Installer Object Library' with VS2012. Any ideas, what could cause this issue?

当我尝试创建对COM组件的引用时,出现此错误消息对'Microsoft Windows Installer对象库的引用'无法添加。

When I try to create reference to the COM component, I get this error message "a reference to 'Microsoft Windows Installer Object Library' could not be added".

VS项目是基本类库(c#x86)。

The VS project is basic class library (c# x86).

推荐答案

在Visual Studio中,转到引用>添加引用...> COM>浏览...> %WINDIR%。

In Visual Studio go to References > Add Reference... > COM > Browse... > %WINDIR%\system32\msi.dll.

在VS2012上为我工作。

Worked for me on VS2012.

这篇关于不能添加对“ Microsoft Windows Installer对象库”的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆