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

IIncrementalGenerator can not build in Vs2022 #76776

Open
znoliver opened this issue Jan 16, 2025 · 2 comments
Open

IIncrementalGenerator can not build in Vs2022 #76776

znoliver opened this issue Jan 16, 2025 · 2 comments
Labels
Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@znoliver
Copy link

Dotnet 8:

Steps to Reproduce:

  1. Create a generator project with target .net 8
  2. Build project
  3. Build failed

When I use Rider to build project or use cmd to run dotnet build,the project build normal. But when I use Vs2022 to build , build failed.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 16, 2025
@Youssef1313
Copy link
Member

@znoliver Can you add more details as to what errors you are seeing?

@znoliver
Copy link
Author

@znoliver Can you add more details as to what errors you are seeing?

My code use IIncrementalGenerator generator don't generator. For example , I except generator an Attribute with name Mock Attribute, and I use this attribute in a class. When I build , Vs2022 build error with message can't find [Mock]. But Rider or dotnet build can build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants