If you get any error like this
The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be
loaded from the assembly ...\packages\Microsoft.Net.Compilers.1.0.0\build..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'file:///...\packages\Microsoft.Net.Compilers.1.0.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a
public class that implements Microsoft.Build.Framework.ITask.
Then you need update the Microsoft.Net.Compilers from the NuGet Package Manager.
- Right Click on Solution.
- Go to Manage Nuget Packages for this Solution.
- Search forMicrosoft.Net.Compilers on Browse section.
- Install or update on dependent projects as necessary.