Set up your GitHub Actions workflow with a specific version of the .NET core sdk
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Danny McCormick dc30e5defe
V1 (#9)
* Consume new tool-cache

* Fix tests

* V1
6 years ago
.github steps not actions 6 years ago
__tests__ New tool cache (#8) 6 years ago
docs
externals Add installer (#1) 7 years ago
lib Merge branch 'master' of https://github.com/actions/setup-dotnet 6 years ago
node_modules New tool cache (#8) 6 years ago
src Merge branch 'master' of https://github.com/actions/setup-dotnet 6 years ago
toolkit New tool cache (#8) 6 years ago
.gitignore
.prettierrc.json
LICENSE
README.md V1 (#9) 6 years ago
action.yml Update action.yml 7 years ago
jest.config.js
package-lock.json V1 (#9) 6 years ago
package.json V1 (#9) 6 years ago
tsconfig.json

README.md

setup-dotnet

This action sets up a dotnet environment for use in actions by:

  • optionally downloading and caching a version of dotnet by version and adding to PATH
  • registering problem matchers for error output

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@master
- uses: actions/setup-dotnet@v1
  with:
    version: 2.2.103 // Version to use.
- run: dotnet build <my project>

Matrix Testing:

jobs:
  build:
    strategy:
      matrix:
        dotnet: [ 2.2.103, 3.5.2, 4.5.1 ]
    name: Dotnet ${{ matrix.dotnet }} sample
    steps:
      - uses: actions/checkout@master
      - name: Setup dotnet
        uses: actions/setup-dotnet@v1
        with:
          version: ${{ matrix.dotnet }}
      - run: dotnet build <my project>

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide