ASPNETCOMPILER Microsoft.VisualC.CppCodeProvider error
Hi!
All of a sudden I cannot build my projekt anymore using MSBuild.
We had some problems with getting gulp to work properly but finally we got it working but then this came up:
][MvcBuildViews] AspNetCompiler
ASPNETCOMPILER error ASPCONFIG: The CodeDom provider type "Microsoft.VisualC.CppCodeProvider, CppCodeProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located.
I don't get it? It is a C# VS 2015 solution with absolutely no trace of C++. It has worked just fine before, where does this come from?
We have other applications running on the TC using same MSBuild settings that works just fine.
Thanks for your help!
/Kristoffer
Please sign in to leave a comment.
Hi!
It has to do with node.js. As soon as the node_modules catalog exists the error accours. If I delete the catalog, it works just fine.
Has anyone had this problem?
/Kristoffer
Hello Kristoffer,
Have you tried to build your project in the command prompt on the same machine as the TeamCity agent and under an account the agent is running? What does it output?
Hi Kristoffer,
Had the same issue and solved it by adding a parameter for system.MvcBuildViews with value "false"
Not optimal, but solved my problem.
I guess that the issue is related to some of the files in node_modules that are considered as Cpp files?
-anders
Make the node_modules folder hidden and it will fix the problem.