Running an ASP.NET project yellow screens with "Could not find a part of the path 'D:\Path\To\Project\bin\roslyn\csc.exe'"

Roslyn going awol

I recently had to pull a project onto a different PC and for some reason even after running a NuGet package restore and building the solution, running the project failed with an error as the roslyn csc compiler wasn't being copied into the bin folder.

The solution, that worked for me, was to force a re-install of the package that owns those files with:

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

From the Package Manager Console in Visual Studio. Hey presto, problem solved! 

Looking at the diff before and after re-installing the package, the only difference is that the Identity of the package has been made more specific:

The diff for the projects .csproj before and after the package was re-installed

About Rob

I've been interested in computing since the day my Dad purchased his first business PC (an Amstrad PC 1640 for anyone interested) which introduced me to MS-DOS batch programming and BASIC.

My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.

1 Comment

Add a Comment