Skip to content

Commit 59ee658

Browse files
committed
Add Packages
1 parent 9d02fa9 commit 59ee658

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/dotnet-bootstrapper/BootstrapperCommandParser.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation and contributors. All rights reserved.
1+
// Copyright (c) .NET Foundation and contributors. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using System;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using Microsoft.Deployment.DotNet.Releases;
3+
4+
namespace Microsoft.DotNet.Tools.Bootstrapper;
5+
6+
internal static class DotNetReleasesHandler
7+
{
8+
internal static Uri[] DotNetReleasesIndexFeeds = new Uri[]
9+
{
10+
new("https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json"),
11+
new("https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.1/releases.json")
12+
};
13+
14+
internal static Uri DotNetRelesesMetadataFeed(string channelVersion) =>
15+
new($"https://builds.dotnet.microsoft.com/dotnet/release-metadata/{channelVersion}/releases.json");
16+
}

src/dotnet-bootstrapper/dotnet-bootstrapper.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
<ItemGroup>
2323
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="$(MicrosoftVisualStudioSetupConfigurationPackageVersion)" />
2424
<PackageReference Include="NuGet.Versioning" Version="6.9.1" />
25+
<PackageReference Include="Spectre.Console" Version="0.49.1" />
2526
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
2627
<PackageReference Include="System.CommandLine.Rendering" Version="0.3.0-alpha.20574.7" />
2728
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
2829
<ProjectReference Include="..\dotnet-core-uninstall\dotnet-core-uninstall.csproj"/>
30+
<PackageReference Include="Microsoft.Deployment.DotNet.Releases" Version="1.0.1" />
2931
</ItemGroup>
3032

3133
<ItemGroup>

0 commit comments

Comments
 (0)