asp.net mvc

Could not find a part of the path … bin\roslyn\csc.exe

A
Desh-Duniya Team Author
| Published May 06, 2019
  • Microsoft.Net.Compilers 1.1.1
  • Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.1

Then I looked into .csproj and made sure that the paths to packages are correct (in my case ....\packages\*.*) inside tags <ImportProject> on top and in <Target> with name "EnsureNuGetPackageBuildImports" on the bottom. This is on MVC 5 and .NET Framework 4.5.2.

Short answer - run this in the Package Manager Console:

Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

Discussion (0)

Please sign in to participate in the discussion.
No comments yet. Be the first to join the conversation!