|
46 | 46 | Possible values:
|
47 | 47 | - dotnet - the Microsoft.NETCore.App shared runtime
|
48 | 48 | - aspnetcore - the Microsoft.AspNetCore.App shared runtime
|
| 49 | + - windowsdesktop - the Microsoft.WindowsDesktop.App shared runtime |
49 | 50 | .PARAMETER DryRun
|
50 | 51 | If set it will not perform installation but instead display what command line to use to consistently install
|
51 | 52 | currently requested version of dotnet cli. In example if you specify version 'latest' it will display a link
|
|
83 | 84 | [string]$Version="Latest",
|
84 | 85 | [string]$InstallDir="<auto>",
|
85 | 86 | [string]$Architecture="<auto>",
|
86 |
| - [ValidateSet("dotnet", "aspnetcore", IgnoreCase = $false)] |
| 87 | + [ValidateSet("dotnet", "aspnetcore", "windowsdesktop", IgnoreCase = $false)] |
87 | 88 | [string]$Runtime,
|
88 | 89 | [Obsolete("This parameter may be removed in a future version of this script. The recommended alternative is '-Runtime dotnet'.")]
|
89 | 90 | [switch]$SharedRuntime,
|
@@ -268,6 +269,10 @@ function Get-Latest-Version-Info([string]$AzureFeed, [string]$Channel, [bool]$Co
|
268 | 269 | elseif ($Runtime -eq "aspnetcore") {
|
269 | 270 | $VersionFileUrl = "$UncachedFeed/aspnetcore/Runtime/$Channel/latest.version"
|
270 | 271 | }
|
| 272 | + # Currently, the WindowsDesktop runtime is manufactured with the .Net core runtime |
| 273 | + elseif ($Runtime -eq "windowsdesktop") { |
| 274 | + $VersionFileUrl = "$UncachedFeed/Runtime/$Channel/latest.version" |
| 275 | + } |
271 | 276 | elseif (-not $Runtime) {
|
272 | 277 | if ($Coherent) {
|
273 | 278 | $VersionFileUrl = "$UncachedFeed/Sdk/$Channel/latest.coherent.version"
|
@@ -325,6 +330,9 @@ function Get-Download-Link([string]$AzureFeed, [string]$SpecificVersion, [string
|
325 | 330 | elseif ($Runtime -eq "aspnetcore") {
|
326 | 331 | $PayloadURL = "$AzureFeed/aspnetcore/Runtime/$SpecificVersion/aspnetcore-runtime-$SpecificVersion-win-$CLIArchitecture.zip"
|
327 | 332 | }
|
| 333 | + elseif ($Runtime -eq "windowsdesktop") { |
| 334 | + $PayloadURL = "$AzureFeed/Runtime/$SpecificVersion/windowsdesktop-runtime-$SpecificVersion-win-$CLIArchitecture.zip" |
| 335 | + } |
328 | 336 | elseif (-not $Runtime) {
|
329 | 337 | $PayloadURL = "$AzureFeed/Sdk/$SpecificVersion/dotnet-sdk-$SpecificVersion-win-$CLIArchitecture.zip"
|
330 | 338 | }
|
@@ -564,6 +572,10 @@ elseif ($Runtime -eq "aspnetcore") {
|
564 | 572 | $assetName = "ASP.NET Core Runtime"
|
565 | 573 | $dotnetPackageRelativePath = "shared\Microsoft.AspNetCore.App"
|
566 | 574 | }
|
| 575 | +elseif ($Runtime -eq "windowsdesktop") { |
| 576 | + $assetName = ".NET Core Windows Desktop Runtime" |
| 577 | + $dotnetPackageRelativePath = "shared\Microsoft.WindowsDesktop.App" |
| 578 | +} |
567 | 579 | elseif (-not $Runtime) {
|
568 | 580 | $assetName = ".NET Core SDK"
|
569 | 581 | $dotnetPackageRelativePath = "sdk"
|
|
0 commit comments