https://github.com/giggio/dotnet-cross
A tool to cross compile .NET apps to the correct architecture and C library.
https://github.com/giggio/dotnet-cross
dotnet dotnet-tool
Last synced: 7 months ago
JSON representation
A tool to cross compile .NET apps to the correct architecture and C library.
- Host: GitHub
- URL: https://github.com/giggio/dotnet-cross
- Owner: giggio
- License: mit
- Created: 2023-10-12T04:29:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-10T23:14:53.000Z (over 2 years ago)
- Last Synced: 2025-02-01T15:11:25.536Z (over 1 year ago)
- Topics: dotnet, dotnet-tool
- Language: C#
- Homepage:
- Size: 38.1 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dotnet-cross
[](https://www.nuget.org/packages/dotnet-cross/)
[](https://github.com/giggio/dotnet-cross/actions/workflows/build.yml)
A tool to cross compile .NET apps to the correct architecture and C library.
## Running
Run it like this:
```bash
dotnet cross
```
For example:
```bash
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.
```bash
dotnet tool install --global dotnet-cross
```
## Contributing
Questions, comments, bug reports, and pull requests are all welcome. Submit them at
[the project on GitHub](https://github.com/giggio/dotnet-cross).
Bug reports that include steps-to-reproduce (including code) are the
best. Even better, make them in the form of pull requests.
## Author
[Giovanni Bassi](https://github.com/giggio).
## License
Licensed under the MIT License.