Replies: 1 comment
-
The reason is quite straight: the IDE (VS) needs to load a built version of source generator to analyze all the code, but the built version doesn't exist in a fresh clone. It doesn't try to build one until you invoke the build command. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
The past few weeks I've been trying to develop a source generator to be used in our projects. I've now come to a point where the source generator works as expected however there is a CS8034 warning (Visual Studio only) that I just can't seem to get rid of.
The Source generator project itself is quite simple:
https://github.com/Lombiq/Helpful-Libraries/pull/251/files
As you can see, within the same solution the source generator is then referenced like so:
https://github.com/Lombiq/Helpful-Libraries/pull/251/files#diff-bc5ef2f21ac09705d622b943b9261ec0249e73a12bb7d18b7aa435cc6027e45fR27
Within this test project the source generator works as expected and creates the constants no problem, however we would like to get rid of this last pesky warning before merging this in.
Some additional notes about this:
<NoWarn>
doesn't seem to workAny insights on this would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions