From 53b9c43ec3f45d5c6b0a6ac95f26c25ee4f10c6a Mon Sep 17 00:00:00 2001 From: Zoltan Csizmadia Date: Tue, 9 Nov 2021 13:40:17 -0600 Subject: [PATCH] Update README.md Add multi framework example --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index bfec8f1..740e114 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,22 @@ steps: - run: dotnet build ``` +Multiple versions: +```yaml +steps: +- uses: actions/checkout@v2 +- uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.x' # Use the latest version of the 3.1 channel +- uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' # Use the latest version of the 5.0 channel +- uses: actions/setup-dotnet@v1 + with: + dotnet-version: '6.0.x' # Use the latest version of the 6.0 channel +- run: dotnet build +``` + Preview version: ```yml steps: