-
Notifications
You must be signed in to change notification settings - Fork 835
Prepare repo to build 2.2.1 #493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,15 +1,8 @@ | ||
<Project> | ||
|
||
<PropertyGroup Condition=" '$(VersionPrefix)' == '2.1.7' "> | ||
<PropertyGroup Condition=" '$(VersionPrefix)' == '2.2.1' "> | ||
<PackagesInPatch> | ||
</PackagesInPatch> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(VersionPrefix)' == '2.1.6' "> | ||
<PackagesInPatch> | ||
Microsoft.Extensions.ObjectPool; | ||
Microsoft.Extensions.Primitives; | ||
</PackagesInPatch> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -26,11 +26,13 @@ static void Main(string[] args) | |
|
||
private readonly CommandOption _source; | ||
private readonly CommandOption _output; | ||
private readonly CommandOption _feedv3; | ||
|
||
public Program() | ||
{ | ||
_source = Option("-s|--source <SOURCE>", "The NuGet v2 source of the package to fetch", CommandOptionType.SingleValue); | ||
_output = Option("-o|--output <OUT>", "The generated file output path", CommandOptionType.SingleValue); | ||
_feedv3 = Option("--v3", "Sources is nuget v3", CommandOptionType.NoValue); | ||
|
||
Invoke = () => Run().GetAwaiter().GetResult(); | ||
} | ||
|
@@ -78,11 +80,15 @@ private async Task<int> Run() | |
|
||
if (!File.Exists(nupkgPath)) | ||
{ | ||
var url = $"{source}/{id}/{version}"; | ||
var url = _feedv3.HasValue() | ||
? $"{source}/{id.ToLowerInvariant()}/{version}/{id.ToLowerInvariant()}.{version}.nupkg" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. :/ I'm sure this will bite us elsewhere too. (nuget casing issues) |
||
: $"{source}/{id}/{version}"; | ||
Console.WriteLine($"Downloading {url}"); | ||
|
||
var response = await client.GetStreamAsync(url); | ||
|
||
using (var file = File.Create(nupkgPath)) | ||
{ | ||
Console.WriteLine($"Downloading {url}"); | ||
var response = await client.GetStreamAsync(url); | ||
await response.CopyToAsync(file); | ||
} | ||
} | ||
|
This file contains hidden or 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,42 +1,44 @@ | ||
<Baseline Version="2.1.6"> | ||
<Package Id="Microsoft.Extensions.Caching.Abstractions" Version="2.1.2" /> | ||
<Package Id="Microsoft.Extensions.Caching.Memory" Version="2.1.2" /> | ||
<Package Id="Microsoft.Extensions.Caching.Redis" Version="2.1.2" /> | ||
<Package Id="Microsoft.Extensions.Caching.SqlServer" Version="2.1.2" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Abstractions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Binder" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.CommandLine" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.FileExtensions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Ini" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Json" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.KeyPerFile" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.UserSecrets" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Xml" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Configuration" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.DiagnosticAdapter" Version="2.1.0" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Abstractions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Composite" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Embedded" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Physical" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.FileSystemGlobbing" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.Abstractions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.AzureAppServices" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.Configuration" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.Console" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.Debug" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.EventLog" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.EventSource" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.Testing" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging.TraceSource" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Logging" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.ObjectPool" Version="2.1.6" /> | ||
<Package Id="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Options" Version="2.1.1" /> | ||
<Package Id="Microsoft.Extensions.Primitives" Version="2.1.6" /> | ||
<Package Id="Microsoft.Extensions.WebEncoders" Version="2.1.1" /> | ||
<Baseline Version="2.2.0"> | ||
<Package Id="Microsoft.Extensions.Caching.Abstractions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Caching.Memory" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Caching.Redis" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Caching.SqlServer" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Abstractions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Binder" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.CommandLine" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.FileExtensions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Ini" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Json" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.KeyPerFile" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.UserSecrets" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration.Xml" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Configuration" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.DependencyInjection" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.DiagnosticAdapter" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Abstractions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Composite" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Embedded" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.FileProviders.Physical" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.FileSystemGlobbing" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.AzureAppServices" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.Configuration" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.Console" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.Debug" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.EventLog" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.EventSource" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.Testing" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging.TraceSource" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Logging" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.ObjectPool" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Options.DataAnnotations" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Options" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.Primitives" Version="2.2.0" /> | ||
<Package Id="Microsoft.Extensions.WebEncoders" Version="2.2.0" /> | ||
</Baseline> |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a post-release activity to clean up things like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary. The dotnet-core blob and myget feeds contain the 2.2.0 packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll open a bug on aspnetcore-internal to track this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, i'll remove this feed now. Didn't see this comment before I merged.