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 8cb6f75 commit 5e7b693Copy full SHA for 5e7b693
InterfaceStubGenerator.Shared/Parser.cs
@@ -34,6 +34,9 @@ CancellationToken cancellationToken
34
35
refitInternalNamespace = $"{refitInternalNamespace ?? string.Empty}RefitInternalGenerated";
36
37
+ // Remove - as they are valid in csproj, but invalid in a namespace
38
+ refitInternalNamespace = refitInternalNamespace.Replace('-', '_').Replace('@', '_');
39
+
40
// we're going to create a new compilation that contains the attribute.
41
// TODO: we should allow source generators to provide source during initialize, so that this step isn't required.
42
var options = (CSharpParseOptions)compilation.SyntaxTrees[0].Options;
0 commit comments