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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type