ClangSharp
ClangSharp copied to clipboard
ClangSharpPInvokeGenerator crashes on startup due to System.CommandLine 2.0.0.0
installing and running ClangSharpPInvokeGenerator results in
PS C:\...\Build> ClangSharpPInvokeGenerator
Unhandled exception. System.TypeInitializationException: The type initializer for 'ClangSharp.Program' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at ClangSharp.Program..cctor()
--- End of inner exception stack trace ---
at ClangSharp.Program.<Main>(String[] args)
Seems like its missing from the tool package. I'll work to get a v15.0.1 patch up.
I expect the PrivateAssets on the package is incorrect.
Fixed with v15.0.1 now on NuGet.
I would ensure that the README.md is updated each time you publish a new version as I ran into this exact issue by installing using the command in the REAMDE.me which still has --version 15.0.0.