无法正确引用 MSHTML

Ale*_*lev 5 .net mshtml windows-10 visual-studio-2017

我需要在 Windows 10(最新版本)下使用 VS2017 构建旧的 .NET 项目的小帮助。

我的问题是我需要以某种方式引用的“MSHTML”组件。通过References - Add - COM - Microsoft HTML Object Library这样做会导致以下构建错误:

warning MSB3283: Cannot find wrapper assembly for type library "MSHTML".
Verify that (1) the COM component is registered correctly and (2) your 
target platform is the same as the bitness of the COM component. 
For example, if the COM component is 32-bit, your target platform 
must not be 64-bit.
Run Code Online (Sandbox Code Playgroud)

当我尝试直接引用C:\Windows\system32\mshtml.tlb时,会发生同样的错误。

我找到的唯一解决方案(例如,http : //techninotes.blogspot.ru/2016/08/fixing-cannot-find-wrapper-assembly-for.html)假设mshtml已经在 GAC 中我的情况:我在 GAC、GAC_32 和 GAC_64 文件夹中没有发现任何相似之处。

还有什么可以尝试的吗?先感谢您。

小智 1

我也有类似的情况,只是Windows 8.1。

但问题在于另一个,插件本身可以在另一台计算机上运行,​​而不能在无法构建项目的计算机上运行。也许问题出在操作系统上。