I added Microsoft HTML Object Library
as COM Type Libraries to use mshtml
.
I could build the project when I used in Visual Studio 2017. But after updating to Visual Studio 2019, there is a error The type or namespace name 'mshtml' could not be found
.
I have no idea why the library is not recognized.
How can I resolve the error?
I installed Unofficial.Microsoft.mshtml
from NuGet package manager, then the problem was resolved.
I don't know why official dll doesn't work, though.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.