Msbuid : CSC : warning CS8032: An instance of analyzer be created. Could not load file or assembly 'Microsoft.CodeAnalysis, Version



I was creating analyzer for .net core project and bump into this error when i tried to use MSBuild to do my builds. No problem when i do "dotnet build".

Anyways, a workaround for this issue is to install this package into your target project. I am using 2.6.1 but other version might work for you. This also resolve messages coming from VStudio.

Install-Package Microsoft.Net.Compilers -Version 2.6.1 

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm