You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from C:\ Users\sacsharm\.nuget\packages\system.text.json\6.0.0\analyzers\dotnet\roslyn3.11\cs\System.Text.Json.SourceGeneration.dll
#74252
Open
ssachin872 opened this issue
Jul 3, 2024
· 2 comments
Brief description:
Getting this error while adding "Microsoft.Identity.ServiceEssentials.SDK" this package in project
Describe your code style rule here.
Languages applicable:
Is your analyzer C# only? VB Only? Or Both?
Code example that the analyzer should report:
A small code snippet that describes a case that the analyzer should report.
Additional information:
Any more additional information you would like to add.
CSC : error CS8032: An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from C:
Users\sacsharm.nuget\packages\system.text.json\6.0.0\analyzers\dotnet\roslyn3.11\cs\System.Text.Json.SourceGeneration.dll : C
ould not load file or assembly 'Microsoft.CodeAnalysis, Version=3.11.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system cannot find the file specified.. [C:\SCOM\SystemCenter-SCOMMIService\src\Service\RestApi
RestApi.Controllers\Microsoft.Scom.RestApi.Controllers.csproj]
This isn't like a Roslyn issue; @ssachin872 can you do a command line build passing /bl to msbuild or dotnet build (for example msbuild /bl) and share the resulting msbuild.binlog file that is created?
Brief description:
Getting this error while adding "Microsoft.Identity.ServiceEssentials.SDK" this package in project
Describe your code style rule here.
Languages applicable:
Is your analyzer C# only? VB Only? Or Both?
Code example that the analyzer should report:
A small code snippet that describes a case that the analyzer should report.
Additional information:
Any more additional information you would like to add.
Documentation requirements:
When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.
The text was updated successfully, but these errors were encountered: