Closed sedoLevi609 closed 1 month ago
@sedoLevi609 There hasn't been an update to the Roslyn compiler packages. There should be no reason source generators would stop working. Can you provide a test case?
@radimitrov This is simple example: SimpleExample.zip
Sorry,my mistake: I generated code with wrong type of string (used 3 " instead of 1)
The quotes end up as just a syntax issue. This is caused by an update in March preventing source generators from being discovered. I'll see about fixing that soon.
@radimitrov I found a bug( I think so) with source generators: if I make an attribute with source generator the solution where I use it doesn't find the attribute after closing and reopening the project(or the app,inside solution). I can only solve this by creating a new solution or regenerate the generator dll and reference it again.
@radimitrov ifj you need an example: Example.zip
So reference generator as dll,then run Test project(it wil work),then exit app(or reopen solution) and run again Test project and it will say it doesn't find attribute(attribute needed to be added with source generator).
Looks like it all works now. I'm pushing it as another update today since it will be a while otherwise
@radimitrov Before the update I was able to write working source generator,but now they don't work(requires partial class inside solution,I exported them as dll and referenced from the project where I wanted to use the source generator). Please help me!