Severity Code Description Project File Line Suppressed Status Warning CS8032 Unable to create an instance of analyzer... from...: Could not load file or assembly... or one of its dependencies. The system can not find the file specified

Error Message : Severity Code Description Project File Line Suppressed Status
Warning CS8032 Unable to create parser Svg from C:\Users\Administrator\Desktop\SVG-master\Generators\bin\Debug\netstandard2.0\Svg.Generators.dll. Instance of Generators.AvailableElementsGenerator: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system can not find the file specified. . Svg (netstandard2.0) C:\Users\Administrator\Desktop\SVG-master\Source\CSC 1
源生成器必须是 .NET Standard 2.0 才能在 Visual Studio 2019+ 中运行或 .NET Standard 1.x 才能在 Visual Studio 2017+ 中运行。
I changed the following two versions of the activity, and it ran successfully. I hope it will be helpful to everyone. Remember to like and save !
insert image description here

VS2019 version

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" />
    <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.0.0" PrivateAssets="all" />
  </ItemGroup>

Guess you like

Origin blog.csdn.net/m0_65636467/article/details/129418270