Recently a new MVC project was created on 2017, and the issue was a strange one, with one of the errors being:
The path "Path\bin\roslyn\csc.exe" could not be found ....
After searching the Internet for information, the culprit is the two builds that NuGet contains:
microsoft.codedom.providers.dotnetcompilerplatform.1.0.0
Microsoft.Net.Compilers
Because there are dependencies, unloading is unloaded from top to bottom.
It's good to unload the two assemblies of related projects!!!
Moving the project output path also does not appear strange bug!!!
Conclusion:
When the MVC project was under construction, it was discovered that MVC5 could only be built, and that it might be MVC5.
After the MVC5 project was built, NuGet loaded many assemblies that had not been seen before.
However, due to the project time is too tight, desktop problems, there is only a 2017 version of the Notebook VS, have to prioritize the resolution of this bug.
Site Publishing "Failed to find path" Path\bin\roslyn\csc.exe "..." and denied access to the workaround