Dependencies
Clone manually
mkdir submodules
cd submodules
git clone --single-branch --branch llvmorg-22.1.8 https://github.com/llvm/llvm-project
git clone https://github.com/dotnet/ClangSharp.git
Use Submodules
You can also use Submodule, but that will clone the whole LLVM project, which will take longer:
submodules clone
submodules checkout
Independently of how you cloned, you'll be able to use submodules for querying the status etc.
Build and Install
dotnet run --project Make
After that you should be able to install via:
dotnet tool install --global \
--add-source \
submodules/ClangSharp/artifacts/bin/sources/ClangSharpPInvokeGenerator/Release/net10.0/publish/ \
ClangSharpPInvokeGenerator