Update reference assemblies for .NET 8 release

This commit is contained in:
Sam Harwell 2023-11-27 09:43:39 -06:00
Родитель 5fc8dd356b
Коммит 7035cebc18
3 изменённых файлов: 58 добавлений и 3 удалений

Просмотреть файл

@ -274,7 +274,12 @@ static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net70TvOS.get -> M
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net70Windows.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net70iOS.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80Android.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80MacCatalyst.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80MacOS.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80TvOS.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80Windows.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.Net.Net80iOS.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.NetCore.NetCoreApp10.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.NetCore.NetCoreApp11.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies
static Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.NetCore.NetCoreApp20.get -> Microsoft.CodeAnalysis.Testing.ReferenceAssemblies

Просмотреть файл

@ -1032,15 +1032,45 @@ namespace Microsoft.CodeAnalysis.Testing
"net8.0",
new PackageIdentity(
"Microsoft.NETCore.App.Ref",
"8.0.0-preview.7.23375.6"),
"8.0.0"),
Path.Combine("ref", "net8.0"));
});
private static readonly Lazy<ReferenceAssemblies> _lazyNet80Windows =
new Lazy<ReferenceAssemblies>(() =>
Net70.AddPackages(
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.WindowsDesktop.App.Ref", "8.0.0-preview.7.23376.1"))));
new PackageIdentity("Microsoft.WindowsDesktop.App.Ref", "8.0.0"))));
private static readonly Lazy<ReferenceAssemblies> _lazyNet80MacOS =
new Lazy<ReferenceAssemblies>(() =>
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.macOS.Ref", "14.0.8478"))));
private static readonly Lazy<ReferenceAssemblies> _lazyNet80Android =
new Lazy<ReferenceAssemblies>(() =>
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.Android.Ref.34", "34.0.43"))));
private static readonly Lazy<ReferenceAssemblies> _lazyNet80iOS =
new Lazy<ReferenceAssemblies>(() =>
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.iOS.Ref", "17.0.8478"))));
private static readonly Lazy<ReferenceAssemblies> _lazyNet80MacCatalyst =
new Lazy<ReferenceAssemblies>(() =>
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.MacCatalyst.Ref", "17.0.8478"))));
private static readonly Lazy<ReferenceAssemblies> _lazyNet80TvOS =
new Lazy<ReferenceAssemblies>(() =>
Net80.AddPackages(
ImmutableArray.Create(
new PackageIdentity("Microsoft.tvOS.Ref", "17.0.8478"))));
public static ReferenceAssemblies Net50 => _lazyNet50.Value;
@ -1075,6 +1105,16 @@ namespace Microsoft.CodeAnalysis.Testing
public static ReferenceAssemblies Net80 => _lazyNet80.Value;
public static ReferenceAssemblies Net80Windows => _lazyNet80Windows.Value;
public static ReferenceAssemblies Net80Android => _lazyNet80Android.Value;
public static ReferenceAssemblies Net80iOS => _lazyNet80iOS.Value;
public static ReferenceAssemblies Net80MacOS => _lazyNet80MacOS.Value;
public static ReferenceAssemblies Net80MacCatalyst => _lazyNet80MacCatalyst.Value;
public static ReferenceAssemblies Net80TvOS => _lazyNet80TvOS.Value;
}
public static class NetStandard

Просмотреть файл

@ -610,6 +610,11 @@ namespace Microsoft.CodeAnalysis.Testing
[InlineData("net7.0-tvos")]
[InlineData("net8.0")]
[InlineData("net8.0-windows")]
[InlineData("net8.0-android")]
[InlineData("net8.0-ios")]
[InlineData("net8.0-macos")]
[InlineData("net8.0-maccatalyst")]
[InlineData("net8.0-tvos")]
#endif
[InlineData("netstandard1.0")]
[InlineData("netstandard1.1")]
@ -677,6 +682,11 @@ class TestClass {
"net7.0-tvos" => ReferenceAssemblies.Net.Net70TvOS,
"net8.0" => ReferenceAssemblies.Net.Net80,
"net8.0-windows" => ReferenceAssemblies.Net.Net80Windows,
"net8.0-android" => ReferenceAssemblies.Net.Net80Android,
"net8.0-ios" => ReferenceAssemblies.Net.Net80iOS,
"net8.0-macos" => ReferenceAssemblies.Net.Net80MacOS,
"net8.0-maccatalyst" => ReferenceAssemblies.Net.Net80MacCatalyst,
"net8.0-tvos" => ReferenceAssemblies.Net.Net80TvOS,
"netstandard1.0" => ReferenceAssemblies.NetStandard.NetStandard10,
"netstandard1.1" => ReferenceAssemblies.NetStandard.NetStandard11,
"netstandard1.2" => ReferenceAssemblies.NetStandard.NetStandard12,