dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.17k stars 5.83k forks source link

Add a note to creating a new compilation object after adding a source in source generators overview #27042

Open Youssef1313 opened 2 years ago

Youssef1313 commented 2 years ago

See https://stackoverflow.com/questions/69853257/sourcegenerator-attribute-constructorarguments-is-empty.

From the OP on Discord:

image

This scenario is really very very common that I think should be noted, since this is the number 1 article in Google search results, where people will expect to find this kind of information.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BillWagner commented 2 years ago

Adding @mikadumont

BillWagner commented 2 years ago

I was going through the issues on this article. I'd like to address this by making a new tutorial with more of a real world scenario using attributes.