Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Updates nuget api url
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankowitz committed Jul 7, 2020
1 parent 3d4db82 commit efef45f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NugetUpdate/NugetApi.cs
Expand Up @@ -16,7 +16,7 @@ public class NugetApi
private readonly AuthenticationHeaderValue _authorizationHeader;
private readonly TextWriter _log;

public static readonly Func<TextWriter, NugetApi> Official = logger => new NugetApi(new Uri("https://api.nuget.org/v3/registration3"), null, logger);
public static readonly Func<TextWriter, NugetApi> Official = logger => new NugetApi(new Uri("https://api.nuget.org/v3/registration5-semver1/"), null, logger);

public NugetApi(Uri baseUri, AuthenticationHeaderValue authorizationHeader, TextWriter log)
{
Expand Down
2 changes: 1 addition & 1 deletion NugetUpdate/NugetUpdate.csproj
Expand Up @@ -9,7 +9,7 @@
<Product>NugetPackageUpdates</Product>
<AssemblyName>NugetPackageUpdates</AssemblyName>
<RootNamespace>NugetPackageUpdates</RootNamespace>
<Version>1.0.17</Version>
<Version>1.0.18</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions NugetUpdate/ProjectFile.cs
Expand Up @@ -26,8 +26,6 @@ private void ParseFileContents(byte[] xmlContents)
}
}

public string FilePath { get; }

public void Reset()
{
ParseFileContents(RawContent);
Expand All @@ -37,7 +35,7 @@ public void Reset()
{
return _doc.SelectNodes($"Project/ItemGroup/PackageReference")
.OfType<XmlNode>()
.Where(x => x.Attributes != null
.Where(x => x.Attributes != null
&& x.Attributes.OfType<XmlAttribute>().Any(y => string.Equals(y.Name, "Include", StringComparison.OrdinalIgnoreCase))
&& x.Attributes.OfType<XmlAttribute>().Any(y => string.Equals(y.Name, "Version", StringComparison.OrdinalIgnoreCase)))
.ToDictionary(x => x.Attributes["Include"].Value, x => x.Attributes["Version"].Value);
Expand Down

0 comments on commit efef45f

Please sign in to comment.