I'm getting the above error when choosing "Run custom tool" on a razor file; when I just save, nothing happens.
In Visual Studio's Error List, I get the following:
"Custom tool error: Could not load file or assembly 'file:///C:\Users\john\AppData\Local\assembly\dl3\MH40ZN5E.14X\44VHO17O.KV9\f801bc8b\bb84bb72_a7abcd01\RazorGenerator.Core.v1.dll' or one of its dependencies. The system cannot find the file specified."
The "bb84bb72_a7abcd01" folder mentioned doesn't exist.
I have verified that the project is running MVC 3 and WebPages 1.
I have uninstalled and reinstalled both the Nuget package and the VS extension.
I have run devenv.exe /log but no error messages in the log file (but I'm attaching it anyway).
It still works fine in VS2010 on the same project.
Any ideas?
Comments: I am also seeing the same issue. My solution has an MVC 4 webapp and a class library. In our case, reversing the solution order fixed the issue, but it still pops up for other applications. In other words, with this structure: |-* webapp solution folder |- * webapp solution file |- * webapp proj folder |-* class lib solution folder |- * class lib solution file |- * class lib proj folder Both solutions contain both projects (and the solution files are identical, except for the projects relative paths). Opening the webapp solution folder DOES NOT WORK (it shows the error message), but opening the class library solution works fine (no error, you can generate code). If needed, I could try and generate a minimal case that can be reproduced. Thanks
In Visual Studio's Error List, I get the following:
"Custom tool error: Could not load file or assembly 'file:///C:\Users\john\AppData\Local\assembly\dl3\MH40ZN5E.14X\44VHO17O.KV9\f801bc8b\bb84bb72_a7abcd01\RazorGenerator.Core.v1.dll' or one of its dependencies. The system cannot find the file specified."
The "bb84bb72_a7abcd01" folder mentioned doesn't exist.
I have verified that the project is running MVC 3 and WebPages 1.
I have uninstalled and reinstalled both the Nuget package and the VS extension.
I have run devenv.exe /log but no error messages in the log file (but I'm attaching it anyway).
It still works fine in VS2010 on the same project.
Any ideas?
Comments: I am also seeing the same issue. My solution has an MVC 4 webapp and a class library. In our case, reversing the solution order fixed the issue, but it still pops up for other applications. In other words, with this structure: |-* webapp solution folder |- * webapp solution file |- * webapp proj folder |-* class lib solution folder |- * class lib solution file |- * class lib proj folder Both solutions contain both projects (and the solution files are identical, except for the projects relative paths). Opening the webapp solution folder DOES NOT WORK (it shows the error message), but opening the class library solution works fine (no error, you can generate code). If needed, I could try and generate a minimal case that can be reproduced. Thanks