Tag: stdole

无法沉默嵌入互操作警告

首先,我需要使用第三方ActiveX控件。 接下来,我必须使用stdole库来为第三方控制一些图像。 当我在默认设置下编译时,我收到一些警告: warning CS1762: A reference was created to embedded interop assembly ‘c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll’ because of an indirect reference to that assembly created by assembly ‘XXX\obj\x86\Release\Interop.ThirdPartyControl.dll’. Consider changing the ‘Embed Interop Types’ property on either assembly. warning CS1762: A reference was created to embedded interop assembly ‘c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll’ because of an indirect reference to that assembly […]

无法在Visual Studio 2015中安装使用ClickOnce部署的应用程序(stdole.dll)

应用程序在.net 4.5中运行,在VS 2012中使用ClickOnce构建和部署。在构建和部署相同的应用程序时,如果不更改VS 2015中的任何设置,我无法在客户端安装它? 得到以下错误: “强名称签名对此程序集stdole.dll无效” 当我从部署安装中排除stdole.dll时没问题。 我的问题是:如何在包含stdole.dll的VS2015中部署应用程序?