Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,15 @@ private static FrameworkPackages LoadFrameworkPackagesFromPack(NuGetFramework fr

private void Add(string id, string version)
{
// intentionally redirect to indexer to allow for overwrite
this.Packages[id] = NuGetVersion.Parse(version);
if (string.IsNullOrWhiteSpace(version))
{
this.Packages.Remove(id);
}
else
{
// intentionally redirect to indexer to allow for overwrite
this.Packages[id] = NuGetVersion.Parse(version);
}
}

public bool IsAFrameworkComponent(string id, NuGetVersion version) => this.Packages.TryGetValue(id, out var frameworkPackageVersion) && frameworkPackageVersion >= version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal static class NETCoreApp50
{ "System.Formats.Asn1", "5.0.0" },
{ "System.IO.FileSystem.AccessControl", "5.0.0" },
{ "System.Net.Http.Json", "5.0.0" },
{ "System.Reflection.DispatchProxy", "4.7.1" },
{ "System.Reflection.DispatchProxy", "4.8.2" },
{ "System.Reflection.Metadata", "5.0.0" },
{ "System.Runtime.CompilerServices.Unsafe", "5.0.0" },
{ "System.Security.AccessControl", "5.0.0" },
Expand All @@ -29,6 +29,11 @@ internal static class NETCoreApp50
{ "System.Text.Json", "5.0.0" },
{ "System.Threading.Channels", "5.0.0" },
{ "System.Threading.Tasks.Dataflow", "5.0.0" },

// removed packages
{ "System.Runtime.InteropServices.WindowsRuntime", null },
{ "System.Runtime.WindowsRuntime", null },
{ "System.Runtime.WindowsRuntime.UI.Xaml", null },
};

internal static FrameworkPackages AspNetCore { get; } = new(Net50, FrameworkNames.AspNetCoreApp, NETCoreApp31.AspNetCore)
Expand Down Expand Up @@ -167,6 +172,10 @@ internal static class NETCoreApp50
{ "System.Security.Permissions", "5.0.0" },
{ "System.Security.Principal.Windows", "5.0.0" },
{ "System.Windows.Extensions", "5.0.0" },

// removed packages
{ "Microsoft.Win32.SystemEvents", null },
{ "System.Drawing.Common", null },
};

internal static FrameworkPackages WindowsDesktop { get; } = new(Net50, FrameworkNames.WindowsDesktopApp, NETCoreApp31.WindowsDesktop)
Expand Down Expand Up @@ -194,6 +203,9 @@ internal static class NETCoreApp50
{ "System.Security.Principal.Windows", "5.0.0" },
{ "System.Threading.AccessControl", "5.0.0" },
{ "System.Windows.Extensions", "5.0.0" },

// removed packages
{ "System.Formats.Asn1", null },
};

internal static void Register() => FrameworkPackages.Register(Instance, AspNetCore, WindowsDesktop);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal static class NETCoreApp60
{ "System.Formats.Asn1", "6.0.0" },
{ "System.Net.Http.Json", "6.0.0" },
{ "System.Reflection.Metadata", "6.0.0" },
{ "System.Runtime.CompilerServices.Unsafe", "6.0.0" },
{ "System.Runtime.CompilerServices.Unsafe", "6.1.2" },
{ "System.Security.AccessControl", "6.0.0" },
{ "System.Text.Encoding.CodePages", "6.0.0" },
{ "System.Text.Encodings.Web", "6.0.0" },
Expand Down Expand Up @@ -157,6 +157,14 @@ internal static class NETCoreApp60
{ "System.IO.Pipelines", "6.0.0" },
{ "System.Security.Cryptography.Pkcs", "6.0.0" },
{ "System.Security.Cryptography.Xml", "6.0.0" },

// removed packages
{ "Microsoft.Win32.Registry", null },
{ "System.Security.AccessControl", null },
{ "System.Security.Cryptography.Cng", null },
{ "System.Security.Permissions", null },
{ "System.Security.Principal.Windows", null },
{ "System.Windows.Extensions", null },
};

internal static FrameworkPackages WindowsDesktop { get; } = new(Net60, FrameworkNames.WindowsDesktopApp, NETCoreApp50.WindowsDesktop)
Expand All @@ -176,6 +184,14 @@ internal static class NETCoreApp60
{ "System.Security.Permissions", "6.0.0" },
{ "System.Threading.AccessControl", "6.0.0" },
{ "System.Windows.Extensions", "6.0.0" },

// removed packages
{ "Microsoft.Win32.Registry", null },
{ "System.IO.FileSystem.AccessControl", null },
{ "System.IO.Pipes.AccessControl", null },
{ "System.Security.AccessControl", null },
{ "System.Security.Cryptography.Cng", null },
{ "System.Security.Principal.Windows", null },
};

internal static void Register() => FrameworkPackages.Register(Instance, AspNetCore, WindowsDesktop);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ internal static class NETCoreApp90
{ "System.Security.Cryptography.Pkcs", "8.0.1" },
{ "System.Security.Cryptography.Xml", "9.0.0" },
{ "System.Threading.RateLimiting", "9.0.0" },

// removed packages
{ "System.IO.Pipelines", null },
};

internal static FrameworkPackages WindowsDesktop { get; } = new(Net90, FrameworkNames.WindowsDesktopApp, NETCoreApp80.WindowsDesktop)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ internal static class NETCoreApp21
{ "Microsoft.NETCore.App", "2.1.0" },
{ "Microsoft.VisualBasic", "10.3.0" },
{ "Microsoft.Win32.Registry", "4.5.0" },
{ "System.Buffers", "4.5.0" },
{ "System.Buffers", "4.6.1" },
{ "System.Collections.Immutable", "1.5.0" },
{ "System.ComponentModel.Annotations", "4.5.0" },
{ "System.Diagnostics.DiagnosticSource", "4.5.0" },
{ "System.IO.FileSystem.AccessControl", "4.5.0" },
{ "System.IO.Pipes.AccessControl", "4.5.0" },
{ "System.Memory", "4.5.5" },
{ "System.Numerics.Vectors", "4.5.0" },
{ "System.Memory", "4.6.3" },
{ "System.Numerics.Vectors", "4.6.1" },
{ "System.Reflection.DispatchProxy", "4.5.0" },
{ "System.Reflection.Metadata", "1.6.0" },
{ "System.Security.AccessControl", "4.5.0" },
{ "System.Security.Cryptography.Cng", "4.5.2" },
{ "System.Security.Cryptography.OpenSsl", "4.5.0" },
{ "System.Security.Principal.Windows", "4.5.0" },
{ "System.Threading.Tasks.Dataflow", "4.9.0" },
{ "System.Threading.Tasks.Extensions", "4.5.4" },
{ "System.ValueTuple", "4.5.0" },
{ "System.Threading.Tasks.Extensions", "4.6.3" },
{ "System.ValueTuple", "4.6.1" },
};

internal static void Register() => FrameworkPackages.Register(Instance);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static class NETCoreApp30
{
{ "Microsoft.CSharp", "4.6.0" },
{ "Microsoft.Win32.Registry", "4.6.0" },
{ "System.Buffers", "4.5.1" },
{ "System.Buffers", "4.6.1" },
{ "System.Collections.Immutable", "1.6.0" },
{ "System.ComponentModel.Annotations", "4.6.0" },
{ "System.Data.DataSetExtensions", "4.5.0" },
Expand All @@ -28,7 +28,9 @@ internal static class NETCoreApp30
{ "System.Security.AccessControl", "4.6.0" },
{ "System.Security.Cryptography.Cng", "4.6.0" },
{ "System.Security.Cryptography.OpenSsl", "4.6.0" },
{ "System.Security.Cryptography.Xml", "4.4.0" },

// this package was listed in the package overrides.txt for netcoreapp3.0, but it is not actually in the targeting pack
// { "System.Security.Cryptography.Xml", "4.4.0" },
{ "System.Security.Principal.Windows", "4.6.0" },
{ "System.Text.Encoding.CodePages", "4.6.0" },
{ "System.Text.Encodings.Web", "4.6.0" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal static class NETCoreApp31
{ "System.ComponentModel.Annotations", "4.7.0" },
{ "System.Diagnostics.DiagnosticSource", "4.7.0" },
{ "System.IO.FileSystem.AccessControl", "4.7.0" },
{ "System.Reflection.DispatchProxy", "4.7.0" },
{ "System.Reflection.DispatchProxy", "4.8.2" },
{ "System.Reflection.Metadata", "1.8.0" },
{ "System.Runtime.CompilerServices.Unsafe", "4.7.1" },
{ "System.Runtime.WindowsRuntime", "4.7.0" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal static class NETStandard20
{ "System.Threading.Thread", "4.3.0" },
{ "System.Threading.ThreadPool", "4.3.0" },
{ "System.Threading.Timer", "4.3.0" },
{ "System.ValueTuple", "4.4.0" },
{ "System.ValueTuple", "4.6.1" },
{ "System.Xml.ReaderWriter", "4.3.1" },
{ "System.Xml.XDocument", "4.0.11" },
{ "System.Xml.XmlDocument", "4.3.0" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class NETStandard21
{
internal static FrameworkPackages Instance { get; } = new(NetStandard21, FrameworkNames.NetStandardLibrary, NETStandard20.Instance)
{
{ "System.Buffers", "4.5.1" },
{ "System.Buffers", "4.6.1" },
{ "System.Collections.Concurrent", "4.3.0" },
{ "System.Collections.Immutable", "1.4.0" },
{ "System.ComponentModel", "4.3.0" },
Expand All @@ -20,10 +20,10 @@ internal static class NETStandard21
{ "System.Diagnostics.Contracts", "4.3.0" },
{ "System.Dynamic.Runtime", "4.3.0" },
{ "System.Linq.Queryable", "4.3.0" },
{ "System.Memory", "4.5.5" },
{ "System.Memory", "4.6.3" },
{ "System.Net.Requests", "4.3.0" },
{ "System.Net.WebHeaderCollection", "4.3.0" },
{ "System.Numerics.Vectors", "4.5.0" },
{ "System.Numerics.Vectors", "4.6.1" },
{ "System.ObjectModel", "4.3.0" },
{ "System.Private.DataContractSerialization", "4.3.0" },
{ "System.Reflection.DispatchProxy", "4.5.1" },
Expand All @@ -35,11 +35,13 @@ internal static class NETStandard21
{ "System.Runtime.Numerics", "4.3.0" },
{ "System.Runtime.Serialization.Json", "4.3.0" },
{ "System.Security.AccessControl", "4.4.0" },
{ "System.Security.Cryptography.Xml", "4.4.0" },

// this package was listed in the package overrides.txt for netstandard2.1, but it is not actually in the targeting pack
// { "System.Security.Cryptography.Xml", "4.4.0" },
{ "System.Security.Principal", "4.3.0" },
{ "System.Security.Principal.Windows", "4.4.0" },
{ "System.Threading", "4.3.0" },
{ "System.Threading.Tasks.Extensions", "4.5.4" },
{ "System.Threading.Tasks.Extensions", "4.6.3" },
{ "System.Threading.Tasks.Parallel", "4.3.0" },
{ "System.Xml.XDocument", "4.3.0" },
{ "System.Xml.XmlSerializer", "4.3.0" },
Expand Down
Loading