dotnet / dotnet/roslyn

This generator is not generating files. But build works fine

Open
#74,601 19 comments 1 reaction 1 assignee Assigned to @chsienki View on GitHub
Area-Compilers
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/This-generator-is-not-generating-files-/10676451)._

---
I’m using the source generator in the Attached screenshot.
VS 2022 claims that the class does not implement the interface, but it compiles, build and debug without problems.
Other developers of my team have the same problems, other developers of my team doesn't.
The developers who doesn't have the problems, instead of the "this generators is not generating files." message, can see the generated files.

This seems to be the same problem: https://developercommunity.visualstudio.com/t/Code-generated-by-Source-Generator-is-ma/1636837?ref=native&refTime=1717591876532&refUserId=b37eec92-69bd-6611-a596-8af859bc02dd

![Uploading image.png…]()

---
### Original Comments

#### Feedback Bot on 6/5/2024, 06:57 PM:

(private comment, text removed)
#### Graham Watts on 6/6/2024, 06:27 AM:

(private comment, text removed)
#### Sam Harwell [MSFT] on 6/6/2024, 08:08 AM:

(private comment, text removed)
#### William Bonazzoli on 6/6/2024, 08:39 AM:

(private comment, text removed)
#### Sam Harwell [MSFT] on 6/6/2024, 09:14 AM:

(private comment, text removed)
#### William Bonazzoli on 6/7/2024, 01:51 AM:

(private comment, text removed)
#### William Bonazzoli on 6/19/2024, 02:29 AM:

(private comment, text removed)
#### Feedback Bot on 6/18/2024, 10:18 PM:

(private comment, text removed)
#### Feedback Bot on 6/19/2024, 07:08 AM:

(private comment, text removed)
#### Sam Harwell [MSFT] on 6/19/2024, 08:55 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.