We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8dcd09 commit 53614e7Copy full SHA for 53614e7
CommunityToolkit.Mvvm.SourceGenerators/Extensions/INamedTypeSymbolExtensions.cs
@@ -33,6 +33,10 @@ static StringBuilder BuildFrom(ISymbol? symbol, StringBuilder builder)
33
};
34
}
35
36
+ // Build the full metadata name by concatenating the metadata names of all symbols from the input
37
+ // one to the outermost namespace, if any. Additionally, the ` and + symbols need to be replaced
38
+ // to avoid errors when generating code. This is a known issue with source generators not accepting
39
+ // those characters at the moment, see: https://github.com/dotnet/roslyn/issues/58476.
40
return BuildFrom(symbol, new StringBuilder(256)).ToString().Replace('`', '-').Replace('+', '.');
41
42
0 commit comments