home / software / tips and tricks / In Visual Studio 2015 projects are throwing an error saying The Microsoft.CodeAnalysis.BuildTasks.Csc task could not be loaded from the assembly...

In Visual Studio 2015 projects are throwing an error saying The Microsoft.CodeAnalysis.BuildTasks.Csc task could not be loaded from the assembly...

Updated:  02/20/2017 05:02 AM
Author:  Shiju Mathews

Status:    Resolved.


Error:
The issue is with the package folder in the solution.
One way is to close the solution and delete the “package” folder.
Open the solution again in Visual studio and build it. Package folder will recreate and the error will disappear.

Permanent solution is to exclude the “Package” folder from Source Control.

Tags: In Visual Studio 2015 projects are throwing an error saying The Microsoft.CodeAnalysis.BuildTasks.Csc task could not be loaded from the assembly...
Updated on: April 2024