Skip to content

Commit 88d8f07

Browse files
author
Jason Zhai
committed
Update package name to lowercase
1 parent aa0f779 commit 88d8f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/dotnet-new.Tests/DotnetNewDetailsTest.Approval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private async Task<string> GetLatestVersion(string packageName)
190190
{
191191
using (HttpClient client = new HttpClient())
192192
{
193-
string json = await client.GetStringAsync($"https://api.nuget.org/v3-flatcontainer/{packageName}/index.json");
193+
string json = await client.GetStringAsync($"https://api.nuget.org/v3-flatcontainer/{packageName.ToLowerInvariant()}/index.json");
194194
JObject obj = JObject.Parse(json);
195195

196196
var versions = obj["versions"]?.ToObject<List<string>>();

0 commit comments

Comments
 (0)