63 instantiations of PackCommand
dotnet.Tests (2)
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (1)
721var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(project, callingMethod: callingMethod, identifier: identifier));
GivenThatWeWantToBeBackwardsCompatibleWith1xProjects.cs (1)
57new PackCommand(Log, testInstance.Path)
Microsoft.DotNet.ApiCompat.IntegrationTests (21)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
58PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 99PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name));
Task\ValidatePackageTargetIntegrationTests.cs (19)
44var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 59var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 73var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 79result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 93var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 98result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 112var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 118result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 134var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 141result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 163PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 205PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 246PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 275PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 299PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 323var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 329result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 344var result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj")) 350result = new PackCommand(Log, Path.Combine(testAsset.TestRoot, "PackageValidationTestProject.csproj"))
Microsoft.NET.Build.Tests (9)
GivenFrameworkReferences.cs (1)
739var packCommand = new PackCommand(packageAsset);
GivenThatWeHaveAPackageReferenceWithAliases.cs (1)
150var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(project, callingMethod: callingMethod, identifier: identifier));
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (1)
85var pack = new PackCommand(
GivenThatWeWantToBuildANetCoreApp.cs (2)
1009var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(packageProject, assetIdentifier)); 1062var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(packageProject));
GivenThatWeWantToCopyPPFileToOutput.cs (1)
56var packCommand = new PackCommand(packageAsset);
GivenThatWeWantToGenerateADepsFileForATool.cs (1)
106var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name));
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (2)
76new PackCommand(Log, dependencyProjectDirectory) 276new PackCommand(Log, dependencyProjectDirectory).Execute().Should().Pass();
Microsoft.NET.Pack.Tests (9)
GivenThatThereAreImplicitPackageReferences.cs (1)
260var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackACppCliProject.cs (1)
23new PackCommand(Log, Path.Combine(testAsset.TestRoot, "NETCoreCppCliTest", "NETCoreCppCliTest.vcxproj"))
GivenThatWeWantToPackACrossTargetedLibrary.cs (1)
21new PackCommand(Log, libraryProjectDirectory)
GivenThatWeWantToPackAHelloWorldProject.cs (2)
23var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 70new PackCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name))
GivenThatWeWantToPackANetFrameworkLibrary.cs (1)
79var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAProjectTool.cs (2)
29var packCommand = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)); 48var result = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)).Execute();
GivenThatWeWantToPackASimpleLibrary.cs (1)
19var packCommand = new PackCommand(testAsset);
Microsoft.NET.Restore.Tests (2)
GivenThatWeWantToRestoreDotNetCliToolReference.cs (1)
34var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name));
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (1)
148new PackCommand(Log, dependencyProjectDirectory)
Microsoft.NET.TestFramework (1)
AspNetSdkTest.cs (1)
118var pack = new PackCommand(asset, relativePathToProject);
Microsoft.NET.ToolPack.Tests (19)
GivenThatWeWantToPackAToolProject.cs (4)
41var packCommand = new PackCommand(helloWorldAsset); 93var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 320var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 344var packCommand = new PackCommand(testAsset);
GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs (1)
34var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs (2)
32var packCommand = new PackCommand(helloWorldAsset); 67var packCommand = new PackCommand(helloWorldAsset);
GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs (2)
59var packCommand = new PackCommand(testAsset, "App"); 97var packCommand = new PackCommand(Log, appProjectDirectory);
GivenThatWeWantToPackAToolProjectWithP2PReference.cs (1)
21var packCommand = new PackCommand(testAsset, "App");
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (7)
40var packCommand = new PackCommand(helloWorldAsset); 158new PackCommand(Log, helloWorldAsset.TestRoot).Execute().Should().Pass(); 182var packCommand = new PackCommand(helloWorldAsset); 208var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 264var packCommand = new PackCommand(testAsset).WithWorkingDirectory(testAsset.Path) as PackCommand; 326var packCommand = new PackCommand(helloWorldAsset); 400var packCommand = new PackCommand(Log, Path.Combine(asset.Path, testProject.Name));
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
42var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs (1)
55var packCommand = new PackCommand(helloWorldAsset);
76 references to PackCommand
dotnet.Tests (1)
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (1)
721var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(project, callingMethod: callingMethod, identifier: identifier));
Microsoft.DotNet.ApiCompat.IntegrationTests (7)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
58PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 99PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name));
Task\ValidatePackageTargetIntegrationTests.cs (5)
163PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 205PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 246PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 275PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 299PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name));
Microsoft.NET.Build.Tests (7)
GivenFrameworkReferences.cs (1)
739var packCommand = new PackCommand(packageAsset);
GivenThatWeHaveAPackageReferenceWithAliases.cs (1)
150var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(project, callingMethod: callingMethod, identifier: identifier));
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (1)
85var pack = new PackCommand(
GivenThatWeWantToBuildANetCoreApp.cs (2)
1009var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(packageProject, assetIdentifier)); 1062var packCommand = new PackCommand(_testAssetsManager.CreateTestProject(packageProject));
GivenThatWeWantToCopyPPFileToOutput.cs (1)
56var packCommand = new PackCommand(packageAsset);
GivenThatWeWantToGenerateADepsFileForATool.cs (1)
106var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name));
Microsoft.NET.Pack.Tests (5)
GivenThatThereAreImplicitPackageReferences.cs (1)
260var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAHelloWorldProject.cs (1)
23var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackANetFrameworkLibrary.cs (1)
79var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAProjectTool.cs (1)
29var packCommand = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name));
GivenThatWeWantToPackASimpleLibrary.cs (1)
19var packCommand = new PackCommand(testAsset);
Microsoft.NET.Restore.Tests (1)
GivenThatWeWantToRestoreDotNetCliToolReference.cs (1)
34var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name));
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (2)
AspNetSdkBaselineTest.cs (2)
42var packTransitiveDependency = CreatePackCommand(ProjectDirectory, "RazorPackageLibraryTransitiveDependency"); 45var packDirectDependency = CreatePackCommand(ProjectDirectory, "RazorPackageLibraryDirectDependency");
Microsoft.NET.Sdk.StaticWebAssets.Tests (32)
AspNetSdkBaselineTest.cs (2)
42var packTransitiveDependency = CreatePackCommand(ProjectDirectory, "RazorPackageLibraryTransitiveDependency"); 45var packDirectDependency = CreatePackCommand(ProjectDirectory, "RazorPackageLibraryDirectDependency");
StaticWebAssetsPackIntegrationTest.cs (30)
33var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 44var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 73var pack = CreatePackCommand(projectDirectory); 107var pack = CreatePackCommand(projectDirectory); 134var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 139var pack2 = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 170var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 212var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 255var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 298var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 436var pack = CreatePackCommand(projectDirectory); 505var pack = CreatePackCommand(projectDirectory); 578var pack = CreatePackCommand(projectDirectory); 652var pack = CreatePackCommand(projectDirectory); 855var pack = CreatePackCommand(projectDirectory); 922var pack = CreatePackCommand(projectDirectory); 993var pack = CreatePackCommand(projectDirectory); 1065var pack = CreatePackCommand(projectDirectory); 1270var pack = CreatePackCommand(projectDirectory); 1345var pack = CreatePackCommand(projectDirectory); 1347var pack2 = CreatePackCommand(projectDirectory); 1420var pack = CreatePackCommand(projectDirectory); 1462var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 1488var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 1513var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 1548var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 1578var pack = CreatePackCommand(projectDirectory, "PackageLibraryDirectDependency"); 1604var pack = CreatePackCommand(projectDirectory); 1630var pack = CreatePackCommand(projectDirectory); 1660var incremental = CreatePackCommand(projectDirectory);
Microsoft.NET.TestFramework (2)
AspNetSdkTest.cs (2)
116protected virtual PackCommand CreatePackCommand(TestAsset asset, string? relativePathToProject = null) 118var pack = new PackCommand(asset, relativePathToProject);
Microsoft.NET.ToolPack.Tests (19)
GivenThatWeWantToPackAToolProject.cs (4)
41var packCommand = new PackCommand(helloWorldAsset); 93var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 320var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 344var packCommand = new PackCommand(testAsset);
GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs (1)
34var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs (2)
32var packCommand = new PackCommand(helloWorldAsset); 67var packCommand = new PackCommand(helloWorldAsset);
GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs (2)
59var packCommand = new PackCommand(testAsset, "App"); 97var packCommand = new PackCommand(Log, appProjectDirectory);
GivenThatWeWantToPackAToolProjectWithP2PReference.cs (1)
21var packCommand = new PackCommand(testAsset, "App");
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (7)
40var packCommand = new PackCommand(helloWorldAsset); 182var packCommand = new PackCommand(helloWorldAsset); 208var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot); 264var packCommand = new PackCommand(testAsset).WithWorkingDirectory(testAsset.Path) as PackCommand; 326var packCommand = new PackCommand(helloWorldAsset); 400var packCommand = new PackCommand(Log, Path.Combine(asset.Path, testProject.Name));
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
42var packCommand = new PackCommand(Log, helloWorldAsset.TestRoot);
PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs (1)
55var packCommand = new PackCommand(helloWorldAsset);