Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Assignees

Comments

@ssachin872
Copy link

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jul 3, 2024
@ssachin872
Copy link
Author

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]

Complete error is this

@Cosifne Cosifne added Bug and removed Feature Request untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 3, 2024
@jasonmalinowski
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants