patterncsharpCritical
Could not find a part of the path ... bin\roslyn\csc.exe
Viewed 0 times
binroslyncouldfindpartthecscnotpathexe
Problem
I am trying to run an ASP.NET MVC (model-view-controller) project retrieved from TFS (Team Foundation Server) source control. I have added all assembly references and I am able to build and compile successfully without any error or warning.
But I get the following error in the browser:
Could not find a part of the path
'C:\B8akWorkspace\B8akProject\B8akSolution\B8AK.Portal\bin\roslyn\csc.exe'.
Here is a full screenshot of the error page.
After few days of research, I understood that Roslyn is a .NET compiler platform that offers advanced compiling features. However, I do not understand why my build is trying to find \bin\roslyn\csc.exe because I did not configure anything related to Roslyn. Nor did I intend to use Roslyn in my project.
But I get the following error in the browser:
Could not find a part of the path
'C:\B8akWorkspace\B8akProject\B8akSolution\B8AK.Portal\bin\roslyn\csc.exe'.
Here is a full screenshot of the error page.
After few days of research, I understood that Roslyn is a .NET compiler platform that offers advanced compiling features. However, I do not understand why my build is trying to find \bin\roslyn\csc.exe because I did not configure anything related to Roslyn. Nor did I intend to use Roslyn in my project.
Solution
Edited after Ian Robertson Response.
The problem with the compiler is fixed in a newer version. You can try to reinstall the compiler first before you edit your csproj file.
Original:
The problem with the default VS2015 templates is that the compiler isn't actually copied to the
Add this code in your .csproj file:
The problem with the compiler is fixed in a newer version. You can try to reinstall the compiler first before you edit your csproj file.
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r
Original:
The problem with the default VS2015 templates is that the compiler isn't actually copied to the
tfr\bin\roslyn\ directory, but rather the {outdir}\roslyn\ directoryAdd this code in your .csproj file:
Context
Stack Overflow Q#32780315, score: 611
Revisions (0)
No revisions yet.