dotnet-cross
0.4.0
dotnet tool install --global dotnet-cross --version 0.4.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-cross --version 0.4.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-cross&version=0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-cross --version 0.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-cross
A tool to cross compile .NET apps to the correct architecture and C library.
Running
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.
Installing dotnet cli tool
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
Contributing
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.
Author
License
Licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.