-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add templates for installing the 32 bit .NET SDKs
Install the x86 SDKs in Windows integration tests
- Loading branch information
1 parent
05dab87
commit 7a73ce3
Showing
4 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
parameters: | ||
- name: includeX86 | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
displayName: install dotnet core sdk 5 | ||
inputs: | ||
packageType: sdk | ||
version: $(dotnetCoreSdk5Version) | ||
includePreviewVersions: true | ||
includePreviewVersions: true | ||
|
||
- ${{ if eq(parameters.includeX86, true) }}: | ||
- template: install-dotnet-sdk-32bit.yml | ||
parameters: | ||
sdkVersion: $(dotnetCoreSdk5Version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
parameters: | ||
- name: sdkVersion | ||
type: string | ||
default: '' | ||
|
||
- name: channel | ||
type: string | ||
default: '' | ||
|
||
steps: | ||
- ${{if ne(parameters.sdkVersion, '') }}: | ||
- powershell: | | ||
echo "Downloading dotnet-install.ps1" | ||
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1 | ||
$path = "C:\Users\VssAdministrator\AppData\Local\Microsoft\dotnet_32" | ||
echo "Installing dotnet (x86) to $path" | ||
./dotnet-install.ps1 -version ${{ parameters.sdkVersion }} -Architecture x86 -NoPath -InstallDir $path | ||
echo "Exporting path to DOTNET_EXE_32" | ||
echo "##vso[task.setvariable variable=DOTNET_EXE_32]$path\dotnet.exe" | ||
displayName: install dotnet core sdk ${{ parameters.sdkVersion }} (x86) | ||
- ${{if ne(parameters.channel, '') }}: | ||
- powershell: | | ||
echo "Downloading dotnet-install.ps1" | ||
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1 | ||
$path = "C:\Users\VssAdministrator\AppData\Local\Microsoft\dotnet_32" | ||
echo "Installing dotnet (x86) to $path" | ||
./dotnet-install.ps1 -Channel ${{ parameters.channel }} -Architecture x86 -NoPath -InstallDir $path | ||
echo "Exporting path to DOTNET_EXE_32" | ||
echo "##vso[task.setvariable variable=DOTNET_EXE_32]$path\dotnet.exe" | ||
displayName: install dotnet core sdk ${{ parameters.channel }} (x86) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters