mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-10 05:51:07 +07:00
Update README examples [skip ci]
Update readme examples to use latest version major
This commit is contained in:
parent
6fb0222098
commit
31e0ba28c7
10
README.md
10
README.md
@ -8,7 +8,7 @@ This action will help discover where the `MSBuild` tool is and automatically add
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
- name: Build app for release
|
- name: Build app for release
|
||||||
run: msbuild src\YourProjectFile.csproj -t:rebuild -verbosity:diag -property:Configuration=Release
|
run: msbuild src\YourProjectFile.csproj -t:rebuild -verbosity:diag -property:Configuration=Release
|
||||||
@ -28,7 +28,7 @@ You may have a situation where your Actions runner has multiple versions of Visu
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
vs-version: '[16.4,16.5)'
|
vs-version: '[16.4,16.5)'
|
||||||
```
|
```
|
||||||
@ -41,7 +41,7 @@ If you need your Actions runner to target a pre-release version of Visual Studio
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
vs-prerelease: true
|
vs-prerelease: true
|
||||||
```
|
```
|
||||||
@ -52,7 +52,7 @@ By default the action will use the x86 architecture for MSBuild, but it is possi
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
msbuild-architecture: x64
|
msbuild-architecture: x64
|
||||||
```
|
```
|
||||||
@ -63,7 +63,7 @@ This makes use of the vswhere tool which is a tool delivered by Microsoft to hel
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v2
|
||||||
with:
|
with:
|
||||||
vswhere-path: 'C:\path\to\your\tools\'
|
vswhere-path: 'C:\path\to\your\tools\'
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user