This library offers static generations of P/Invoke for all languages using custom MSBuild tasks to build CsWin32 generations from metadata. It uses custom PowerShell scripts and MSBuild tasks to build libraries, and is attached to a CD workflow that publishes the packages on NuGet.
You can then use the packages just as you would with CsWin32, but installing the correct package (relevant to the link library) to get the correct information.