We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GenAPI fails when generating source for the latest CoreLib:
Unhandled exception: System.ArgumentException: Unknown operator kind. (Parameter 'System.Half.explicit operator checked byte(System.Half)') at Microsoft.DotNet.GenAPI.SyntaxGeneratorExtensions.DeclarationExt(SyntaxGenerator syntaxGenerator, ISymbol symbol, ISymbolFilter symbolFilter) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/SyntaxGeneratorExtensions.cs:line 107 at Microsoft.DotNet.GenAPI.CSharpFileBuilder.Visit(SyntaxNode namedTypeNode, INamedTypeSymbol namedType) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs:line 211 at Microsoft.DotNet.GenAPI.CSharpFileBuilder.Visit(INamespaceSymbol namespaceSymbol) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs:line 118 at Microsoft.DotNet.GenAPI.CSharpFileBuilder.WriteAssembly(IAssemblySymbol assemblySymbol) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/CSharpFileBuilder.cs:line 72 at Microsoft.DotNet.GenAPI.GenAPIApp.Run(ILog logger, String[] assemblies, String[] assemblyReferences, String outputPath, String headerFile, String exceptionMessage, String[] excludeApiFiles, String[] excludeAttributesFiles, Boolean respectInternals, Boolean includeAssemblyAttributes) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI/GenAPIApp.cs:line 86 at Microsoft.DotNet.GenAPI.Tool.Program.<>c__DisplayClass0_0.<Main>b__0(ParseResult parseResult) in /_/src/Compatibility/GenAPI/Microsoft.DotNet.GenAPI.Tool/Program.cs:line 100 at System.CommandLine.CliCommand.<>c__DisplayClass30_0.<SetAction>b__0(ParseResult context) at System.CommandLine.Invocation.AnonymousSynchronousCliAction.Invoke(ParseResult parseResult) at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
dotnet tool install -g microsoft.dotnet.genapi.tool --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json --prerelease genapi --assembly C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.4\System.Private.CoreLib.dll --output-path c:\scratch\spc\spc.cs
System.ArgumentException: Unknown operator kind
The text was updated successfully, but these errors were encountered:
Same thing repros for System.Runtime.
System.Runtime
Appears to be this bug: dotnet/roslyn#63410
Sorry, something went wrong.
Given that this got fixed recently in roslyn, we should rerun the above repro steps with the latest available GenAPI tooling.
Interestingly this still repros with the latest GenAPI that bundles roslyn assemblies from this SHA: dotnet/roslyn@84c5476
Same stack trace
No branches or pull requests
Describe the bug
GenAPI fails when generating source for the latest CoreLib:
To Reproduce
Exceptions (if any)
The text was updated successfully, but these errors were encountered: