https://github.com/devlooped/dotnet-env
Companion to dotnet-env GitHub action to initialize a repository dotnet versions file
https://github.com/devlooped/dotnet-env
Last synced: 8 months ago
JSON representation
Companion to dotnet-env GitHub action to initialize a repository dotnet versions file
- Host: GitHub
- URL: https://github.com/devlooped/dotnet-env
- Owner: devlooped
- License: mit
- Created: 2025-05-27T01:23:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-02T00:06:38.000Z (9 months ago)
- Last Synced: 2025-10-02T02:30:15.662Z (9 months ago)
- Language: C#
- Size: 43 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
 dotnet-env
============
[](https://www.nuget.org/packages/dotnet-env)
[](https://www.nuget.org/packages/dotnet-env)
[](https://github.com//devlooped/dotnet-env/blob/main/license.txt)
[](https://github.com/devlooped/dotnet-env/actions/workflows/build.yml)
Automatically discover used .NET versions in the current repository and
emit a JSON file with them, for use in automatic .NET environment setup
using [dotnet-env](https://github.com/marketplace/actions/dotnet-env) GitHub
action.
## Usage
```shell
> dotnet env --help
DESCRIPTION:
Discovers .NET versions used in the current directory recursively
USAGE:
dotnet env [OPTIONS] [COMMAND]
OPTIONS:
-h, --help Prints help information
-o, --output [FILE] Whether to write versions to an output file. File
path defaults to ./.github/dotnet.json
COMMANDS:
workflow Creates a GitHub Actions workflow file for dotnet-env
```
```shell
> dotnet env workflow --help
DESCRIPTION:
Creates a GitHub Actions workflow file for dotnet-env
USAGE:
dotnet env workflow [file] [OPTIONS]
ARGUMENTS:
[file] Path to the versions file to use in the workflow. Defaults to
./.github/dotnet.json
OPTIONS:
-h, --help Prints help information
```
# Sponsors
[](https://github.com/clarius)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/Keflon)
[](https://github.com/tbolon)
[](https://github.com/kfrancis)
[](https://github.com/twenzel)
[](https://github.com/unoplatform)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/davidjenni)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/akunzai)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)
[](https://github.com/agileworks-eu)
[](https://github.com/sorahex)
[](https://github.com/arsdragonfly)
[](https://github.com/vezel-dev)
[](https://github.com/ChilliCream)
[](https://github.com/4OTC)
[](https://github.com/v-limo)
[](https://github.com/jordansjones)
[](https://github.com/DominicSchell)
[](https://github.com/mausch)
[](https://github.com/jwendl)
[](https://github.com/adalon)
[](https://github.com/Eule02)
[](https://github.com/mattfrear)
[](https://github.com/sponsors/devlooped)
[Learn more about GitHub Sponsors](https://github.com/sponsors)