Skip to content

Commit 470215b

Browse files
committed
Target 8.0 for CodeAnalyzer
1 parent 2bc7974 commit 470215b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/Microsoft.ML.CodeAnalyzer.Tests/Helpers/AdditionalMetadataReferences.cs

+6-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ namespace Microsoft.ML.CodeAnalyzer.Tests.Helpers
1414
{
1515
internal static class AdditionalMetadataReferences
1616
{
17-
#if NETCOREAPP
18-
internal static readonly ReferenceAssemblies DefaultReferenceAssemblies = ReferenceAssemblies.Default
19-
.AddPackages(ImmutableArray.Create(new PackageIdentity("System.Memory", "4.5.1")));
20-
#else
21-
internal static readonly ReferenceAssemblies DefaultReferenceAssemblies = ReferenceAssemblies.NetFramework.Net472.Default
22-
.AddPackages(ImmutableArray.Create(new PackageIdentity("System.Memory", "4.5.1")));
23-
#endif
17+
internal static readonly ReferenceAssemblies DefaultReferenceAssemblies = new ReferenceAssemblies(
18+
"net8.0",
19+
new PackageIdentity(
20+
"Microsoft.NETCore.App.Ref",
21+
"8.0.0-preview.5.23280.8"),
22+
Path.Combine("ref", "net8.0"));
2423

2524
internal static readonly MetadataReference MSDataDataViewReference = RefFromType<IDataView>();
2625
internal static readonly MetadataReference MLNetCoreReference = RefFromType<IHostEnvironment>();

0 commit comments

Comments
 (0)