Okno
Compilation issue with source generator
the bug seems to be somehow related to https://github.com/dotnet/roslyn/issues/24736
But this is supposed to be closed.
27 replies
Compilation issue with source generator
Ok I have finally managed to make it compile, I. missed an error in the generated source (calling an undeclared method).
However any error in the generated source, would still generate this
csc.dll
error code and silence the compiler errors. This would be really frustrating for end users. I am a bit puzzled because those compiler errors are correctly emitted in my test project.
Also I was relying on those to guide the user to write correct mappings attributes, instead of doing a lot of code analysis to produce the correct compiler diagnostics.27 replies
Source generator unable to resolve external type
Hey @333fred I removed all the custom parsing logic, using only the provided context and now it seems to be working as expected. Also I need to setup testing with basic reference assemblies. Thank you so much for the help 🙂
24 replies
Source generator unable to resolve external type
there is also a project containing samples using the source generator, I can reproduce my issue here, but I am not able to debug there :
https://github.com/oknozor/CartographeAutomatique/blob/main/CartographeAutomatique.Samples/SimpleMapping.cs
24 replies
Source generator unable to resolve external type
Yes but I really don't see how I could emulate a type being in an external project there
https://github.com/oknozor/CartographeAutomatique/blob/main/CartographeAutomatique.Tests/Fixtures/ClassToClass.cs
24 replies