Registry Mirror
Skip to content

Conversation

@tannergooding

Copy link
Copy Markdown
Member

The native clangsharp_getVersion() still returned clangsharp version 21.1.8, even though the CMake project and the libClangSharp package were already bumped to 22.1.8. The PInvokeGenerator version guard checks this string, so the 22.1.8.x native package is rejected when the generator is run against libClang 22 -- Invalid libClang version. Returned string 'clangsharp version 21.1.8' does not contain 'version 22.1'.

Fix the string and, because 22.1.8.1 was already published carrying the stale value, republish the corrected native package as 22.1.8.2 (nuspecs + runtime.json).


Consumer pins in Directory.Packages.props are intentionally left lagging at 21.1.8 here; they move to the 22.1.8.2 native package as part of the separate managed-regen change.

Note

This PR body was drafted by Copilot.

clangsharp_getVersion still returned "clangsharp version 21.1.8", so the generator's version guard rejects the 22.1.8.x native package when run against libClang 22. Since 22.1.8.1 was already published with the stale string, bump the native package to 22.1.8.2 alongside the fix.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tannergooding
tannergooding merged commit a70682e into dotnet:main Jul 16, 2026
12 checks passed
@tannergooding
tannergooding deleted the tannergooding-native-version-string branch July 16, 2026 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant