I'm trying to compile my ASP.NET MVC project after adding in a project with a node_modules folder, and it gives me the following error:
The CodeDom provider type "Microsoft.VisualC.CppCodeProvider, Version 10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located.
Probably because in my node_modules folder (which is gigantic, so it's difficult to determine which module is causing the problem) has a C++-like file in it somewhere (possibly a .h file or something). So I excluded the node_modules folder from my project so that it wouldn't try to build it, but I still get the same error. Is there some way to make it not compile that folder, or at least some easier way to determine what might be causing it? I don't have any C++ in my solution otherwise, so I don't really want it to even try compiling C++...
已经有一段时间了,但我刚刚在 VS 2019 中遇到了这个问题......我能够通过将 node_modules 文件夹的属性更改为隐藏在文件系统中来修复它。
I moved my solution from VS2019 to VS2022 and was having this error when I tried to publish the solution. This is how I made the error disappear.
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.