public void NETCoreRuntimePackIsValid() { using (var tester = NuGetArtifactTester.Open( dirs, "Microsoft.NETCore.App.Runtime", $"Microsoft.NETCore.App.Runtime.{dirs.BuildRID}")) { tester.IsRuntimePack(); } }
public void NETCoreAppHostPackIsValid() { using (var tester = NuGetArtifactTester.Open( dirs, "Microsoft.NETCore.App.Host", $"Microsoft.NETCore.App.Host.{dirs.BuildRID}")) { tester.IsAppHostPack(); } }
public void NETCoreTargetingPackIsValid() { using (var tester = NuGetArtifactTester.Open( dirs, "Microsoft.NETCore.App.Ref")) { tester.IsTargetingPackForPlatform(); tester.HasOnlyTheseDataFiles( "data/FrameworkList.xml", "data/PackageOverrides.txt", "data/PlatformManifest.txt"); } }
public void NETStandardTargetingPackIsValid() { using (var tester = NuGetArtifactTester.Open( dirs, "NETStandard.Library.Ref")) { tester.HasOnlyTheseDataFiles( "data/FrameworkList.xml", "data/PackageOverrides.txt"); tester.IsTargetingPack(); // Most artifacts in the repo use the global Major.Minor, this package doesn't. Test // this to make sure infra doesn't regress and cause netstandard to lose its special // 2.1 version. The versioning difference is because netstandard targeting pack // creation doesn't actually belong in Core-Setup: https://github.com/dotnet/standard/issues/1209 Assert.Equal( (2, 1), (tester.PackageVersion.Major, tester.PackageVersion.Minor)); } }