See [the docs](https://docs.microsoft.com/en-us/dotnet/api/system.codedom.compiler.generatedcodeattribute?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(System.CodeDom.Compiler.GeneratedCodeAttribute)%3Bk(SolutionItemsProject)%3Bk(DevLang-csharp)%26rd%3Dtrue&view=net-6.0) for the attribute. The `LibraryImportAttribute` source generator emits code that uses this. It seems like a possibly good idea.