A tool to cross compile .NET apps to the correct architecture and C library.
Run it like this:
dotnet cross <dotnet args>
For example:
dotnet cross build
dotnet cross build --runtime linux-musl-x64 -c Release
If you add --runtime
or -r
it will create a container image and use that to build.
If you've seen Rust's Cross, it's the same idea.
This tool has to be installed as a dotnet global tool, will you need to have the .NET Sdk installed.
dotnet tool install --global dotnet-cross
Questions, comments, bug reports, and pull requests are all welcome. Submit them at the project on GitHub.
Bug reports that include steps-to-reproduce (including code) are the best. Even better, make them in the form of pull requests.
Licensed under the MIT License.