515 writes to Name
dotnet.Tests (8)
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (3)
51Name = "Project", 81Name = "Project", 665Name = referenceProjectName,
CommandTests\Package\List\GivenDotnetListPackage.cs (1)
170Name = "NewtonSoftDependentProject",
CommandTests\Restore\GivenThatIWantToRestoreApp.cs (2)
54Name = "RestoreToDir", 189Name = "RestoreWithRidOptions",
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (2)
147Name = "LibraryProject", 153Name = "TestProject",
Microsoft.DotNet.ApiCompat.IntegrationTests (3)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (2)
41Name = name, 78Name = name,
Task\ValidatePackageTargetIntegrationTests.cs (1)
361Name = name,
Microsoft.NET.Build.Tests (359)
AppHostTests.cs (5)
244Name = "CetCompat", 278Name = "AppHostDotNetSearch", 325Name = "ResourceTest", 385Name = "NoAppHost", 409Name = "RetryAppHost",
ArtifactsOutputPathTests.cs (3)
23Name = "App1", 29Name = "App2", 35Name = "Library",
AspNetCoreOnFullFramework.cs (3)
21Name = "AssemblyPartDiscovery", 46Name = "ReferencedProjectWithPart", 62Name = "ReferencedProjectWithMVC",
COMReferenceTests.cs (2)
23Name = "UseComReferences", 70Name = "MultiComReference",
DepsFileSkipTests.cs (6)
23Name = "SkipRuntimeAssemblyFromPackage", 40Name = "SkipRuntimeAssemblyFromRuntimePack", 58Name = "SkipNativeAssetFromPackage", 77Name = "SkipNativeAssetFromPackage", 94Name = "SkipNativeAssetFromRuntimePack", 112Name = "SkipResourceFromPackage",
DesignTimeBuildTests.cs (4)
86Name = "DesignTimePackageDependencies", 109Name = "DesignTimePackageDependencies", 150Name = "DesignTimePackageDependencies", 197Name = "App",
GenerateResourceTests.cs (1)
19Name = "HelloWorld",
GivenFrameworkReferences.cs (22)
37Name = "MultipleFrameworkReferenceTest", 86Name = "MultipleFrameworkReferenceTest", 130Name = "NETFrameworkTFMTest", 158Name = "MultipleProfileFrameworkReferenceTest", 190Name = "UnknownFrameworkReferenceTest", 229Name = "FrameworkReferenceTest", 269Name = "FrameworkReferenceTest", 308Name = "DisableTargetingPackDownload", 352Name = "RollForwardSetting", 401Name = "RollForwardSettingNotSupported", 435Name = "RuntimePackNotAvailable", 473Name = "RuntimePackNotAvailable", 500Name = "RuntimePackNotRestored", 693Name = "TransitiveFrameworkReference", 700Name = "ReferencedProject", 732Name = "ReferencedPackage", 749Name = "TransitiveFrameworkReference", 830Name = "ResolvedFrameworkReferenceTest", 950Name = "TransitiveFrameworkRef", 983Name = "WindowsFormsFrameworkReference", 1073testProject.Name = "ResolvedVersionsTest"; 1148testProject.Name = "TrimInfoTest";
GivenThatAProjectHasntBeenRestored.cs (1)
52Name = "App",
GivenThatWeHaveAPackageReferenceWithAliases.cs (4)
24Name = "Project", 65Name = "Project", 109Name = "Project", 163Name = referenceProjectName,
GivenThatWeManifestSupportedFrameworks.cs (2)
19Name = "packagethatwillgomissing", 62Name = "SupportedTargetFrameworkLists",
GivenThatWeWantACustomTFM.cs (1)
18Name = "CustomTFMProject",
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (2)
21Name = "MissingPackageDeletedSinceRestore", 78Name = "packagethatwillgomissing",
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (2)
49Name = "RuntimeConfigPartialBuild", 99Name = "UpdateRuntimeConfigPartialBuild",
GivenThatWeWantToBuildADesktopExe.cs (18)
141Name = "AutoRuntimeIdentifierTest", 395Name = "DefaultReferences", 435Name = "MissingReferenceAssemblies", 465Name = "DuplicateFrameworkReferences", 496Name = "DesktopConflictsNuGet", 534Name = "DesktopConflictsHttp4_1", 559Name = "DesktopConflictsRuntimeTargets", 614Name = "DesktopInBoxConflictResolution", 701Name = "OverriddenAlias", 895Name = "DesktopUsingPackageWithSatellites", 902testProject.Name += "_cross"; 936Name = "UppercaseTargetFrameworkVersion", 957Name = "DesktopUsingPackageWithdXmlInRefFolder", 997Name = "DesktopUsingPackageWithPdbAndXml", 1031Name = "ProjectWithPackage", 1040Name = "ConsumerProject", 1074Name = "DesktopPublishPackageWithPdbAndXml", 1111Name = "DesktopPackageWithXmlNotPublished",
GivenThatWeWantToBuildADesktopLibrary.cs (14)
28Name = "NETFrameworkLibrary", 54Name = "NETStandardLibrary", 71Name = "NETFrameworkLibrary", 201Name = "Newtonsoft.Json", 219Name = "NETStandardLibrary", 234Name = "NETFrameworkLibrary", 269Name = "NETStandardLibrary", 286Name = "NETFrameworkLibrary", 338Name = "NETFrameworkLibrary", 389Name = "NETFrameworkLibrary", 397Name = "NETStandard20Project", 469Name = "NETFrameworkLibrary", 497Name = "NETFrameworkLibrary", 520Name = "DependsOnPublish",
GivenThatWeWantToBuildALibrary.cs (13)
486Name = "CompilationConstants", 592Name = "TargetPlatformDefaults", 626Name = "WindowsVersionDefault", 646Name = testName, 722Name = "TargetFrameworkVersionCap", 752Name = "CompileDoesntUseRid", 813Name = "Library", 869Name = "CheckPredefineCulturesOnly", 915Name = "CheckMetricsSupport", 961Name = "EnableDynamicLoading", 1024Name = "Project Name With Spaces", 1079Name = "ProjA", 1097Name = "ProjB",
GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs (2)
233Name = "Project", 296Name = "Project",
GivenThatWeWantToBuildAnAppWithoutTransitiveProjectRefs.cs (9)
222Name = "4", 232Name = "3", 243Name = "2", 254Name = "1", 271Name = "5", 281Name = "4", 292Name = "3", 303Name = "2", 314Name = "1",
GivenThatWeWantToBuildANetCoreApp.cs (25)
81Name = "RuntimeFrameworkVersionFloat", 128Name = "FrameworkTargetTest", 190Name = "MismatchFrameworkTest", 317Name = testName, 383Name = "NetCoreApp", 412Name = "NetCoreApp", 443Name = "NetCore2App", 509Name = "NetCore2App", 548Name = "NetCoreApp1.1_Conflicts", 572Name = "AppUsingPackageWithSatellites", 579testProject.Name += "_cross"; 617Name = "OutputPathCasing", 664Name = "NetCoreAppPackageReference", 671Name = "NetStandardProject", 696Name = "ProjectWithPackageThatNeedsEscapes", 745Name = "ReferencesLegacyContracts", 772Name = "NoPackageReferences", 802Name = "MultiTargetedPackageReference", 826Name = "Prj_すおヸょー", 851Name = "GenerateFilesTest", 911Name = "MainProject", 952Name = "WithRidAssets", 1015Name = "NonPortableRid", 1068Name = "NoFrameworkReferences", 1098Name = "DisableTracing_" + disableTracing.ToString(),
GivenThatWeWantToBuildANetCoreAppForTelemetry.cs (2)
41Name = "FrameworkTargetTelemetryTest", 67Name = "MultitargetTelemetry",
GivenThatWeWantToBuildANetStandard2Library.cs (2)
21Name = "NetStandard2Library", 41Name = "NetStandard2Library",
GivenThatWeWantToBuildAP2PrefernceWithTargetPlatform.cs (2)
17Name = "P2PrefernceWithTargetPlatform_App", 24Name = "P2PrefernceWithTargetPlatform_App_Library",
GivenThatWeWantToBuildASelfContainedApp.cs (1)
181Name = "PackageDownloadProject",
GivenThatWeWantToBuildAWindowsDesktopProject.cs (21)
23Name = "MissingTargetPlatform", 47Name = "A", 55Name = "B", 62Name = "C", 83Name = "windowsDesktopSdk", 104Name = "windowsDesktopSdk", 126Name = "windowsDesktopSdk", 178Name = "InvalidWindowsVersion", 208Name = "ValidWindowsVersion", 235Name = "InvalidTargetPlatform", 464Name = "A", 486Name = "A", 508Name = "A", 536Name = "A", 562Name = "A", 593Name = "A", 619Name = "A", 641Name = "A", 650Name = "B", 671Name = "A", 705Name = "A",
GivenThatWeWantToBuildAWindowsRuntimeComponent.cs (2)
97Name = "ManagedWinRTComponent", 149Name = "ConsoleApp",
GivenThatWeWantToBuildWithARuntimeIdentifier.cs (1)
56Name = "DesignTimePackageDependencies",
GivenThatWeWantToBuildWithATargetPlatform.cs (5)
25Name = "TargetPlatformTests", 64Name = "TargetPlatformTests", 83Name = "UnsupportedOS", 101Name = "It_fails_if_targetplatformversion_is_constant_only", 140Name = "It_fails_if_targetplatformversion_is_invalid",
GivenThatWeWantToBuildWithGlobalJson.cs (1)
22Name = "FailedResolution",
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (13)
90Name = "ProjectWithSourceRevisionId", 107Name = "ProjectWithSourceRevisionId", 138Name = "ProjectWithSourceRevisionId", 170Name = "ProjectWithSourceRevisionId", 206Name = "ProjectWithSourceRevisionId", 489Name = "HelloWorld", 674Name = "UserSecretTest", 716Name = "WebApp", 723Name = "WebAppTests", 757Name = "RepoUrlProject", 790Name = "RepoUrlProject", 824Name = "LibraryProject", 834Name = "HelloWorld",
GivenThatWeWantToCopyLocalDependencies.cs (9)
21Name = ProjectName, 64Name = ProjectName, 99Name = ProjectName, 139Name = ProjectName, 171Name = ProjectName, 209Name = ProjectName, 240Name = ProjectName, 278Name = ProjectName, 311Name = ProjectName,
GivenThatWeWantToCopyPPFileToOutput.cs (2)
20Name = "CopyPPToOutputTest", 46Name = "CopyPPFilesToOutput",
GivenThatWeWantToDetectAspireWorkloadDeprecation.cs (6)
19Name = "AspireHost", 47Name = "AspireHost", 73Name = "AspireHost", 97Name = "RegularApp", 119Name = "AspireOldProject", 146Name = "AspireNewProject",
GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs (2)
19Name = "ExcludeMainProjectFromDeps", 26Name = "ReferencedProject",
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
29Name = "FilterSatelliteAssemblies", 94Name = "DontFilterSatelliteAssemblies",
GivenThatWeWantToFloatWarningLevels.cs (7)
26Name = "HelloWorld", 70Name = "HelloWorld", 115Name = "HelloWorld", 170Name = "HelloWorld", 217Name = "HelloWorld", 300Name = "HelloWorld", 388Name = "HelloWorld",
GivenThatWeWantToGenerateADepsFileForATool.cs (3)
31Name = "TestTool", 56Name = "DependencyContextTool", 116Name = "ToolReferencer",
GivenThatWeWantToPreserveCompilationContextForBuild.cs (3)
21Name = "CopyLocalFalseReferences", 35Name = "NetStandardLibrary", 83Name = "NuGetCopyLocalFalse",
GivenThatWeWantToProduceReferenceAssembly.cs (1)
18Name = "ProduceRefAssembly",
GivenThatWeWantToReferenceAnAssembly.cs (24)
29Name = "Dependency", 54Name = "Referencer", 96Name = "Dependency", 175Name = "Referencer", 218Name = "DllDependencyDependency", 240Name = "DllDependency", 260Name = "Referencer", 302Name = "DllDependencyDependency", 378Name = "DllDependency", 398Name = "Referencer", 442Name = "DllDependency", 467Name = "Dependency", 484Name = "Referencer", 527Name = "DllDependency", 606Name = "Dependency", 623Name = "Referencer", 667Name = "DllDependencyDependency", 689Name = "DllDependency", 709Name = "Dependency", 726Name = "Referencer", 769Name = "DllDependencyDependency", 845Name = "DllDependency", 865Name = "Dependency", 882Name = "Referencer",
GivenThatWeWantToReferenceAProject.cs (9)
139Name = name, 165Name = "ChildProject", 174Name = "ParentProject", 242Name = "ProjectA", 248Name = "ProjectB", 255Name = "ProjectC", 295Name = "ProjectA", 301Name = "ProjectB", 316Name = "ProjectC",
GivenThatWeWantToResolveConflicts.cs (7)
28Name = "DefaultProject", 41Name = "DisableProject", 112Name = "NetStandard2Library", 151Name = "ReferencePackageDllDirectly", 182Name = "DuplicateFrameworkAssembly", 205Name = "AspNetCoreProject", 239Name = nameof(AnalyzersAreConflictResolved),
GivenThatWeWantToResolveRuntimePackAssets.cs (2)
21Name = "MissingRuntimeListProject", 54Name = "DuplicateRuntimeListProject",
GivenThatWeWantToRunFromMSBuildTarget.cs (1)
17Name = "TestRunTargetProject",
GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs (1)
17Name = "DirectoryBuildPropsTest",
GivenThatWeWantToTargetEolFrameworks.cs (6)
26Name = $"Eol{targetFrameworks}", 50Name = $"EolOnlyNetCore", 74Name = $"EolNoWarning", 101Name = $"EolNoWarning", 124Name = $"EolWorkloads", 153Name = $"EolWorkloadsNoWarning",
GivenThatWeWantToTargetNet471.cs (16)
39Name = "Net471App", 70Name = "Net471App_Referencing_NetStandard20", 77Name = "NetStandard20_Library", 111Name = "Net471_NuGetFacades", 151Name = "Net471App_Referencing_NetStandard16", 158Name = "NetStandard16_Library", 193Name = "Net471App_Referencing_Net471Library", 200Name = "Net471_Library", 206Name = "net462_Library", 243Name = "Net471App", 277Name = "Net471AliasTest", 284Name = "NetStandard20_Library", 343Name = "Net471ZipFileTest", 366Name = "NetStandard16_Library", 496Name = "ReferencedHttpClientProject", 520Name = "Net471HttpClientTest",
GivenThatWeWantToTargetNotRecommendedFrameworks.cs (4)
26Name = $"NotRecommended{targetFrameworks}", 52Name = $"NotRecommended{targetFrameworks}", 76Name = $"NotRecommendedOnlyNetCore", 100Name = $"NotRecommendedNoWarning",
GivenThatWeWantToUseAnalyzers.cs (1)
160Name = "NonWebAppWithAspNet",
GivenThatWeWantToUseBinaryFormatter.cs (5)
58Name = "BinaryFormatterTests", 87Name = "BinaryFormatterTests", 114Name = "BinaryFormatterTests", 141Name = "BinaryFormatterTests", 168Name = "BinaryFormatterTests",
GivenThatWeWantToUseContentFiles.cs (1)
23Name = "ContentFiles",
GivenThatWeWantToUsePlatformAnalyzers.cs (9)
20Name = "HelloWorld", 65Name = "HelloWorld", 111Name = "HelloWorld", 157Name = "HelloWorld", 203Name = "HelloWorld", 249Name = "HelloWorld", 288Name = "HelloWorld", 334Name = "HelloWorld", 380Name = "HelloWorld",
GivenThatWeWantToUseVB.cs (1)
37Name = "HelloWorld",
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (3)
228Name = testProjectName, 255Name = $"{targetFrameworks.Replace(';', '_')}_pkg", 286Name = name,
GivenThatWeWantToVerifyProjectReferenceCompat.cs (1)
78Name = name,
GivenThereAreDefaultItems.cs (9)
362Name = "DontIncludeSourceFilesInNone", 516Name = "DuplicateCompileItems", 548Name = "DeduplicatePackage_Reference", 585Name = "OverrideImplicitFrameworkReference", 623Name = "DuplicateFrameworkReference", 661Name = "OverrideNetCoreApp", 698Name = "DuplicatePackageReference", 755Name = "DontIncludeSourceFilesInNone", 808Name = "DontIncludeSourceFilesInNone",
GivenTransitiveFrameworkReferencesAreDisabled.cs (2)
114Name = "ReferencedProject", 159Name = "ReferencedProject",
GiventThatWeWantDesignerSupport.cs (2)
44Name = "ReferencedProject", 50Name = "DesignerTest",
GivenWeWantToRequireWindowsForDesktopApps.cs (6)
167Name = ProjectName, 195Name = ProjectName, 223Name = ProjectName, 337Name = ProjectName, 384Name = projectName, 401Name = projectName,
ImplicitAspNetVersions.cs (6)
26Name = "AspNetImplicitVersion", 58Name = "AspNetImplicitVersion", 91Name = "AspNetExplicitVersion", 121Name = "MultipleExplicitReferences", 160Name = "AspNetCoreAll_On3_0", 195Name = "AspNetCoreApp_On3_0",
Net50Targeting.cs (1)
17Name = "Net5Test",
NonCopyLocalProjectReferenceTests.cs (2)
23Name = "ReferencedProject", 30Name = "MainProject",
ProjectConfigurationDescriptionTest.cs (1)
19Name = "MultitargetingConfigurationDescription",
ReferenceExeTests.cs (2)
41Name = "MainProject", 87Name = "ReferencedProject",
RoslynBuildTaskTests.cs (1)
106Name = "App1",
WorkloadTests.cs (12)
21Name = "WorkloadTest", 39Name = "WorkloadTest", 59Name = "WorkloadTest", 92Name = "WorkloadTest", 119Name = "WorkloadTest", 141Name = "WorkloadTest", 162Name = "WorkloadTest", 184Name = "WorkloadTest", 210Name = "WorkloadTest", 239Name = "MainProject", 278Name = "MainProject", 286Name = "ReferencedProject",
Microsoft.NET.Pack.Tests (17)
GivenThatThereAreImplicitPackageReferences.cs (10)
19Name = "PackNetStandard1x", 38Name = "PackNetStandard20", 53Name = "PackNetCoreApp11Library", 74Name = "PackNetCoreApp20Library", 89Name = "PackNetCoreApp11App", 110Name = "Packnet462App", 134Name = "PackApp_" + targetFramework, 151Name = "PackAspNetCoreApp21App", 169Name = "PackNetCoreApp20App", 192Name = "PackMultiTargetedLibrary",
GivenThatWeWantToPackAHelloWorldProject.cs (1)
54Name = "InvokeBuildOnPack",
GivenThatWeWantToPackANetFrameworkLibrary.cs (2)
19Name = "PackImplicitReferences", 41Name = "PackImplicitReferences",
GivenThatWeWantToPackAProjectTool.cs (2)
19Name = "TestToolNetCore22", 38Name = "TestTool",
SolutionPackTests.cs (2)
17Name = "Project1", 23Name = "Project2",
Microsoft.NET.Publish.Tests (104)
FilesCopiedToPublishDirTests.cs (1)
29Name = "TestFilesCopiedToPublishDir",
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (1)
26Name = "DepsJsonVersions",
GivenThatWeWantToCrossPublish.cs (1)
17Name = "CrossPublish",
GivenThatWeWantToExcludeAPackageFromPublish.cs (5)
181Name = "TestLibrary", 189Name = "TestApp", 210Name = "TestLibrary", 218Name = "TestApp", 242Name = "PrivateAssetsTransitive",
GivenThatWeWantToFilterSatelliteAssemblies.cs (2)
22Name = "PublishFilteredSatelliteAssemblies", 61Name = "PublishSatelliteAssemblies",
GivenThatWeWantToPreserveCompilationContext.cs (2)
31Name = "TestLibrary", 37Name = "TestApp",
GivenThatWeWantToPublishAHelloWorldProject.cs (15)
138Name = "Hello.World", 179Name = "Hello", 266Name = selfContained ? "SelfContainedWithConflicts" : 718Name = "PreserveNewestFilesOnPublish", 747Name = "InvokeBuildOnPublish", 783Name = "NoDuplicatesInResolvedPublishAssets", 853Name = "ConsoleWithPublishProfile", 921Name = "LibProjectWithDifferentTFM", 927Name = "ExeWithPublishProfile", 984Name = "ConsoleWithPublishProfile", 1041Name = "WebWithPublishProfile", 1090Name = "PublishImplicitRid", 1120Name = "AppHostDotNetSearch", 1210Name = "AppHostDotNetSearch", 1228Name = "PublishMultitarget",
GivenThatWeWantToPublishAnAotApp.cs (6)
625Name = "HelloWorld", 661Name = "ClassLibTest", 1097Name = projectName, 1119Name = projectName, 1146Name = projectName, 1237Name = projectName,
GivenThatWeWantToPublishANetCoreAppForTelemetry.cs (1)
123Name = projectName,
GivenThatWeWantToPublishAProjectWithDependencies.cs (2)
244Name = "NetStdLib", 257Name = "TestApp",
GivenThatWeWantToPublishASelfContainedApp.cs (2)
137Name = "WpfProjectAllResources", 181Name = "WpfProjectSelectResources",
GivenThatWeWantToPublishASingleFileApp.cs (22)
96Name = "SingleFileTest", 162Name = "ClassLib", 185Name = "NetStandardExe", 208Name = "ConsoleApp", 275Name = "SingleFileTest", 308Name = projName, 407Name = "SingleFileTest", 467Name = "SingleFileTest", 546Name = "SingleFileTest", 693Name = "HelloWorld", 732Name = "ClassLibTest", 761Name = projectName, 811Name = "SingleFileTest", 846Name = "CetCompat", 886Name = "SingleFileTest", 908Name = "SingleFileTest", 930Name = "SingleFileTest", 953Name = "SingleFileTest", 984Name = "SingleFileTest", 1015Name = "SingleFileTest", 1073Name = "SingleFileTest", 1143Name = "SingleFileTest",
GivenThatWeWantToPublishAWebApp.cs (3)
62Name = "WebTest", 121Name = "WebTest", 172Name = "WebWithPublishProfile",
GivenThatWeWantToPublishIncrementally.cs (7)
19Name = "RegularPublishToSingleExe", 58Name = "PublishSingleFile1", 103Name = "PublishSingleExe", 142Name = "RegularPublishToTrimmedSingleExe", 221Name = "PublishToCustomDir", 256Name = "PublishToMultipleDirs", 307Name = "PublishDependencyFileIncremental",
GivenThatWeWantToPublishReadyToRun.cs (4)
129Name = "FailingToCrossgen", 178Name = "ConsoleApp", 430Name = referenceProjectName, 445Name = mainProjectName,
GivenThatWeWantToPublishToClickOnce.cs (1)
26Name = "ConsoleWithPublishProfile",
GivenThatWeWantToPublishTrimmedWindowsFormsAndWPFApps.cs (9)
23Name = "WinformsBuildErrorFailTest", 45Name = "WinformsBuildErrorSuppressPassTest", 69Name = "WinformsErrorPresentFailTest", 93Name = "WinformsErrorSuppressedPassTest", 297Name = "WpfErrorPresentFailTest", 319Name = "WpfErrorSuppressedPassTest", 343Name = "WpfErrorPresentPassTest", 367Name = "WpfPassTest", 392Name = projectName,
GivenThatWeWantToPublishWithoutConflicts.cs (2)
24Name = "ConflictingFilePublish", 58Name = "DuplicateFiles",
GivenThatWeWantToRunILLink.cs (8)
1991Name = projectName, 2067Name = projectName, 2087Name = "TrimmableAssembly", 2110Name = "NonTrimmableAssembly", 2129Name = "UnusedTrimmableAssembly", 2149Name = "UnusedNonTrimmableAssembly", 2180Name = mainProjectName, 2229Name = referenceProjectName,
GivenThatWeWantToStoreAProjectWithDependencies.cs (1)
274Name = "Test",
PublishDepsFilePathTests.cs (1)
70Name = "TestsPublishDepsFilePath",
PublishItemsOutputGroupOutputsTests.cs (1)
29Name = "TestPublishItemsOutputGroupOutputs",
PublishItemsOutputGroupTests.cs (1)
120Name = "TestPublishOutputGroup",
PublishNetFrameworkApp.cs (1)
17Name = "NetStandardProject",
PublishWebApp.cs (1)
19Name = "SelfContainedWebApp",
RuntimeIdentifiersTests.cs (4)
23Name = "BuildWithRid", 81Name = "BuildWithUseCurrentRuntimeIdentifier", 125Name = "PublishWithRid", 343Name = "DuplicateRuntimeIdentifiers",
Microsoft.NET.Restore.Tests (18)
GivenThatWeWantAutomaticTargetingPackReferences.cs (4)
30Name = "ProjectWithoutTargetingPackRef", 67Name = "ProjectWithoutTargetingPackRef", 136Name = "ProjectWithoutTargetingPackRef", 184Name = "ProjectWithoutTargetingPackRef",
GivenThatWeWantRestoreToUseImplicitPackages.cs (2)
24Name = testProjectName, 58Name = testProjectName,
GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs (1)
21Name = "ObsoleteCliToolRefRestoreProject",
GivenThatWeWantToRestoreDotNetCliToolReference.cs (2)
26Name = "TestTool" + nameof(It_can_restore_with_netcoreapp2_2), 41Name = "DotNetCliToolReferenceProject",
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (2)
108Name = testProjectName, 127Name = GetUniquePackageNameForEachTestProject(testProjectName),
GivenThatWeWantToRestoreProjectsWithPackageDowngrades.cs (2)
18Name = testProjectName, 48Name = testProjectName,
GivenThatWeWantToUseFrameworkRoslyn.cs (5)
20Name = testProjectName, 55Name = testProjectName, 94Name = testProjectName, 116Name = testProjectName, 143Name = testProjectName,
Microsoft.NET.Sdk.Web.Tests (4)
DeprecationTests.cs (3)
15Name = "WebAppWithoutOpenAPIAnalyzers", 38Name = "WebAppWithOpenAPIAnalyzersFalse", 64Name = $"WebApp_{targetFramework.Replace(".", "_")}",
PublishTests.cs (1)
127Name = projectName,
Microsoft.NET.TestFramework (1)
ProjectConstruction\TestProject.cs (1)
16Name = name;
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (1)
387Name = "wpfTool",
672 references to Name
dotnet.Tests (11)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (3)
219.WithWorkingDirectory(Path.Combine(testInstance.Path, testProject.Name ?? string.Empty)) 278new DotnetBuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name ?? string.Empty)) 310.WithWorkingDirectory(Path.Combine(testAsset.Path, testProject.Name ?? string.Empty))
CommandTests\Package\Add\GivenDotnetPackageAdd.cs (2)
66.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name)) 96.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name))
CommandTests\Package\List\GivenDotnetListPackage.cs (1)
204var projectDirectory = Path.Combine(testAsset.Path, testProject.Name);
CommandTests\Restore\GivenThatIWantToRestoreApp.cs (2)
67var rootPath = Path.Combine(testAsset.TestRoot, testProject.Name); 197var rootPath = Path.Combine(testAsset.TestRoot, testProject.Name);
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs (2)
172new DotnetCommand(Log, "sln", "add", libraryProject.Name) 178new DotnetCommand(Log, "sln", "add", testProject.Name)
OutputPathOptionTests.cs (1)
60.Execute("sln", "add", testProject.Name)
dotnet-watch.Tests (4)
Build\EvaluationTests.cs (3)
546watchableApp.Start(testAsset, arguments, relativeProjectDirectory: testAsset.TestProject!.Name); 577=> Path.Combine(projectAsset.Path, projectAsset.TestProject!.Name!, projectAsset.TestProject!.Name + ".csproj");
Process\LaunchSettingsProfileTest.cs (1)
100=> Path.Combine(testAsset.Path, testAsset.TestProject.Name);
Microsoft.DotNet.ApiCompat.IntegrationTests (33)
CompatibleFrameworkInPackageValidatorIntegrationTests.cs (6)
57TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 58PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 68string assemblyName = $"{asset.TestProject.Name}.dll"; 98TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 99PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 108string assemblyName = $"{asset.TestProject.Name}.dll";
Task\ValidatePackageTargetIntegrationTests.cs (27)
162TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 163PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 179{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 180{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 186Assert.Contains($"CP0008 Type 'PackageValidationTests.First' does not implement interface 'PackageValidationTests.IBaseInterface' on lib/{ToolsetInfo.CurrentTargetFramework}/{asset.TestProject.Name}.dll but it does on lib/netstandard2.0/{asset.TestProject.Name}.dll", log.errors); 204TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 205PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 211{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 212{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 216File.Delete(Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework, $"{testDummyDependency.Name}.dll")); 245TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 246PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 252{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 253{ NuGetFramework.ParseFolder(ToolsetInfo.CurrentTargetFramework), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework) } } 258File.Delete(Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", ToolsetInfo.CurrentTargetFramework, $"{dependency.Name}.dll")); 265Assert.Contains($"CP0001 Type 'PackageValidationTests.MyForwardedType' exists on lib/netstandard2.0/{testProject.Name}.dll but not on lib/{ToolsetInfo.CurrentTargetFramework}/{testProject.Name}.dll", log.errors); 274TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 275PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 281{ NuGetFramework.ParseFolder("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } } 298TestAsset asset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 299PackCommand packCommand = new(Log, Path.Combine(asset.TestRoot, testProject.Name)); 305{ NuGetFramework.Parse("netstandard2.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", "netstandard2.0") } }, 306{ NuGetFramework.ParseComponents($".NETCoreApp,Version=v{ToolsetInfo.CurrentTargetFrameworkVersion}", "Windows,Version=7.0"), new string[] { Path.Combine(asset.TestRoot, asset.TestProject.Name, "bin", "Debug", $"net{ToolsetInfo.CurrentTargetFrameworkVersion}-windows") } }
Microsoft.DotNet.ApiSymbolExtensions.Tests (9)
AssemblySymbolLoaderTests.cs (9)
169IAssemblySymbol fromAssembly = SymbolFactory.GetAssemblyFromSyntax(SimpleAssemblySourceContents, assemblyName: assetInfo.TestAsset.TestProject.Name); 215IAssemblySymbol symbol = loader.LoadAssembly(Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll")); 268string assemblyPath = Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll"); 304loader.LoadAssembly(Path.Combine(assetInfo.OutputDirectory, assetInfo.TestAsset.TestProject.Name + ".dll")); 320using FileStream stream = File.OpenRead(Path.Combine(assetInfo.OutputDirectory, testProject.Name + ".dll")); 321IAssemblySymbol symbol = loader.LoadAssembly(testProject.Name, stream); 324Assert.Equal(testProject.Name, symbol.Name, StringComparer.Ordinal); 344assembliesToExclude: [assetInfo.TestAsset.TestProject.Name + ".dll"]); 367assembliesToExclude: [assetInfo.TestAsset.TestProject.Name]);
Microsoft.DotNet.PackageInstall.Tests (1)
TestToolBuilder.cs (1)
154var testAssetProjectDirectory = Path.Combine(testAsset.Path, testProject.Name!);
Microsoft.NET.Build.Tests (353)
AppHostTests.cs (7)
18var testProjectName = testAsset.TestProject?.Name ?? testAsset.Name; 261string apphostPath = Path.Combine(outputDirectory.FullName, $"{testProject.Name}.exe"); 294outputDirectory.Should().HaveFiles(new[] { $"{testProject.Name}{Constants.ExeSuffix}" }); 302ReadOnlySpan<byte> appBytes = File.ReadAllBytes(Path.Combine(outputDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}")); 341outputDirectory.Should().HaveFiles(new[] { testProject.Name + ".exe" }); 343string apphostPath = Path.Combine(outputDirectory.FullName, testProject.Name + ".exe"); 430testProject.Name + ".dll"),
ArtifactsOutputPathTests.cs (33)
92OutputPathCalculator outputPathCalculator = OutputPathCalculator.FromProject(Path.Combine(testAsset.Path, testProject.Name), testProject); 93new FileInfo(Path.Combine(outputPathCalculator.GetOutputDirectory(), testProject.Name + ".dll")) 114OutputPathCalculator outputPathCalculator = OutputPathCalculator.FromProject(Path.Combine(testAsset.Path, testProject.Name), testProject); 115new FileInfo(Path.Combine(outputPathCalculator.GetOutputDirectory(configuration: "release"), testProject.Name + ".dll")) 118new FileInfo(Path.Combine(outputPathCalculator.GetPublishDirectory(configuration: "release"), testProject.Name + ".dll")) 139OutputPathCalculator outputPathCalculator = OutputPathCalculator.FromProject(Path.Combine(testAsset.Path, testProject.Name), testProject); 140new FileInfo(Path.Combine(outputPathCalculator.GetOutputDirectory(configuration: "release"), testProject.Name + ".dll")) 143new FileInfo(Path.Combine(outputPathCalculator.GetPackageDirectory(configuration: "release"), testProject.Name + ".1.0.0.nupkg")) 153new DirectoryInfo(Path.Combine(testAsset.TestRoot, testProject.Name)) 157new DirectoryInfo(Path.Combine(testAsset.TestRoot, "artifacts", "obj", testProject.Name, configuration)) 178outputPathCalculator.ArtifactsPath = Path.Combine(testAsset.Path, testProject.Name, "artifacts"); 184new FileInfo(Path.Combine(outputPathCalculator.GetOutputDirectory(), testProject.Name + ".dll")) 271new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "NET8_Debug")).Should().Exist(); 272new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "NET7_Debug")).Should().Exist(); 273new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 275new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_net8.0")).Should().NotExist(); 276new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "bin", testProject.Name, "debug_net7.0")).Should().NotExist(); 278new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "NET8_Debug")).Should().Exist(); 279new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "NET7_Debug")).Should().Exist(); 280new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 282new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_net8.0")).Should().NotExist(); 283new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "obj", testProject.Name, "debug_net7.0")).Should().NotExist(); 288.WithWorkingDirectory(Path.Combine(testAsset.Path, testProject.Name)) 295new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "NET8_Release")).Should().Exist(); 296new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "NET7_Debug")).Should().Exist(); 297new DirectoryInfo(Path.Combine(testAsset.Path, "artifacts", "publish", testProject.Name, "debug_netstandard2.0")).Should().Exist(); 300.WithWorkingDirectory(Path.Combine(testAsset.Path, testProject.Name)) 306new FileInfo(Path.Combine(testAsset.Path, "artifacts", "package", "release", testProject.Name + ".1.0.0.nupkg")).Should().Exist(); 438.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name)) 479new DirectoryInfo(Path.Combine(testAsset.TestRoot, testProject.Name, "artifacts")) 560var projectDir = Path.Combine(testAsset.Path, testAsset.TestProject.Name); 597? $"{testProject.Name}.exe" 598: testProject.Name;
AspNetCoreOnFullFramework.cs (2)
36var parts = DefaultAssemblyPartDiscoveryProvider.DiscoverAssemblyParts(""" + testProject.Name + @"""); 84string exePath = Path.Combine(outputPath, testProject.Name + ".exe");
DeleteNuGetArtifactsFixture.cs (1)
20return TestAssetsManager.GetTestDestinationDirectoryPath(dependencyProject.Name, callingMethod, identifier);
DepsFileSkipTests.cs (4)
123var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 136string depsJsonPath = Path.Combine(outputFolder, $"{testProject.Name}.deps.json"); 163var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: filenameToSkip + assetType) 176string depsJsonPath = Path.Combine(outputFolder, $"{testProject.Name}.deps.json");
DesignTimeBuildTests.cs (2)
219string projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name); 231string projectFilePath = Path.Combine(projectFolder, testProject.Name + ".csproj");
GivenFrameworkReferences.cs (13)
58string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 102.Restore(Log, testProject.Name); 113string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 139.Restore(Log, testProject.Name); 149string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 179string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 372string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 719string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 754testProject.PackageReferences.Add(new TestPackageReference(referencedPackage.Name, "1.0.0", nupkgFolder.FullName)); 772string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 842var projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name); 999string projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name); 1160var command = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProject.Name), targetFramework,
GivenThatWeHaveAPackageReferenceWithAliases.cs (3)
40testProject.SourceFiles[$"{testProject.Name}.cs"] = ConflictingClassLibUsage; 87testProject.SourceFiles[$"{testProject.Name}.cs"] = ClassLibAandBUsage; 124testProject.SourceFiles[$"{testProject.Name}.cs"] = ClassLibAandBUsage;
GivenThatWeManifestSupportedFrameworks.cs (2)
26string testDirectory = Path.Combine(asset.TestRoot, project.Name); 68string testDirectory = Path.Combine(asset.TestRoot, project.Name);
GivenThatWeWantACustomTFM.cs (2)
27File.WriteAllText(Path.Combine(testAsset.TestRoot, testProject.Name, "CustomTargetFramework.targets"), $@" 46var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name),
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (7)
31.CreateTestProject(project, project.Name) 32.Restore(Log, project.Name); 46asset.Restore(Log, project.Name); 83.CreateTestProject(project, project.Name); 87Path.Combine(asset.TestRoot, project.Name)); 92project.Name, 94pack.GetNuGetPackage(project.Name));
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (4)
54var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 63var configFile = Path.Combine(buildCommand.GetOutputDirectory(configuration: "Release", runtimeIdentifier: testProject.RuntimeIdentifier).FullName, testProject.Name + ".runtimeconfig.json"); 104var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 124var configFile = Path.Combine(buildCommand.GetOutputDirectory(configuration: "Release", runtimeIdentifier: testProject.RuntimeIdentifier).FullName, testProject.Name + ".runtimeconfig.json");
GivenThatWeWantToBuildACrossTargetedLibrary.cs (3)
144string outputPathValue = File.ReadAllText(Path.Combine(testAsset.TestRoot, testProject.Name, "OutputPathValue.txt")); 169string temp = $"{testProject.Name}.csproj.user"; 185string outputPathValue = File.ReadAllText(Path.Combine(testAsset.TestRoot, testProject.Name, "OutputPathValue.txt"));
GivenThatWeWantToBuildADesktopExe.cs (14)
164var getValueCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, "PlatformTarget"); 441var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 470var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 501var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 541var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 566var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 651var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier) 720var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 907var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 972TestAsset testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 1008TestAsset testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: testPath); 1051TestAsset testAsset = _testAssetsManager.CreateTestProject(consumerProject, consumerProject.Name, identifier: testPath); 1085TestAsset testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: testPath); 1121TestAsset testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name);
GivenThatWeWantToBuildADesktopLibrary.cs (9)
91if (Path.GetFileName(projectPath).Equals(netFrameworkLibrary.Name + ".csproj", StringComparison.OrdinalIgnoreCase)) 160using (var depsJsonFileStream = File.OpenRead(Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProject.Name}.deps.json"))) 189using (var depsJsonFileStream = File.OpenRead(Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProject.Name}.deps.json"))) 342project.SourceFiles[project.Name + ".cs"] = $@" 344public static class {project.Name} 408if (Path.GetFileNameWithoutExtension(path) == project.Name) 427string projectFolder = Path.Combine(testAsset.Path, project.Name); 511return new FileInfo(Path.Combine(outputDirectory.FullName, referencedProject.Name + ".dll")).FullName; 525var testInstance = _testAssetsManager.CreateTestProject(testProject, testProject.Name)
GivenThatWeWantToBuildALibrary.cs (22)
496testProj.SourceFiles[$"{testProj.Name}.cs"] = @" 542var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name)); 548var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(targetFramework).FullName, $"{testProj.Name}.exe")); 602var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "TargetPlatformIdentifier"); 633var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "TargetPlatformVersion"); 651var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier); 680var relativePathToProject = Path.Combine(testProject.Name, testProject.Name + ".csproj"); 694restoreCommand = testAsset.GetRestoreCommand(Log, testProject.Name); 726var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, targetFramework); 728var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 757var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 766.Restore(Log, testProject.Name); 837Path.Combine(asset.Path, project.Name), 888string runtimeConfigName = $"{testProj.Name}.runtimeconfig.json"; 932string runtimeConfigName = $"{testProj.Name}.runtimeconfig.json"; 987string runtimeConfigName = $"{testProject.Name}.runtimeconfig.json"; 991$"{testProject.Name}.runtimeconfig.json" 1033File.WriteAllText(Path.Combine(testAsset.Path, testProject.Name, $"{testProject.Name}.cs"), @" 1045string projectFolder = Path.Combine(testAsset.Path, testProject.Name); 1047var buildCommand = new BuildCommand(testAsset, $"{testProject.Name}");
GivenThatWeWantToBuildALibraryWithOSSupportedVersion.cs (10)
22WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 47WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 71WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 90WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 110WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 129WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 168WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 187WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 216WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name) 265WorkingDirectory = Path.Combine(testAsset.TestRoot, testProject.Name)
GivenThatWeWantToBuildANetCoreApp.cs (26)
154string runtimeConfigFile = Path.Combine(outputDirectory.FullName, testProject.Name + ".runtimeconfig.json"); 162var runtimeconfigDevFileName = testProject.Name + ".runtimeconfig.dev.json"; 210.Restore(Log, testProject.Name); 323string outputMessage = $"Hello from {project.Name}!"; 337var testAsset = _testAssetsManager.CreateTestProject(project, project.Name) 365new DotnetCommand(Log, Path.Combine(outputFolder, project.Name + ".dll")) 394$"{proj.Name}.runtimeconfig.dev.json"); 422$"{proj.Name}.runtimeconfig.dev.json"); 487using (var depsJsonFileStream = File.OpenRead(Path.Combine(outputFolder, $"{project.Name}.deps.json"))) 491.OnlyHaveRuntimeAssemblies("", project.Name) 526using var depsJsonFileStream = File.OpenRead(Path.Combine(outputFolder, $"{project.Name}.deps.json")); 553var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 585var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 625var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: useStandardOutputPaths.ToString()); 681var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 757var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 777var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 779string testDirectory = Path.Combine(testAsset.TestRoot, testProject.Name); 809var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 869var depsFilePath = Path.Combine(outputPath, $"{testProject.Name}.deps.json"); 870var runtimeConfigPath = Path.Combine(outputPath, $"{testProject.Name}.runtimeconfig.json"); 1011var package = new TestPackageReference(packageProject.Name, "1.0.0", packCommand.GetNuGetPackage()); 1064var package = new TestPackageReference(packageProject.Name, "1.0.0", packCommand.GetNuGetPackage()); 1107testProj.SourceFiles[$"{testProj.Name}.cs"] = @" 1123var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name)); 1129var runCommand = new RunExeCommand(Log, Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework).FullName, $"{testProj.Name}{EnvironmentInfo.ExecutableExtension}"));
GivenThatWeWantToBuildANetStandard2Library.cs (2)
45project.SourceFiles[project.Name + ".cs"] = $@" 47public static class {project.Name}
GivenThatWeWantToBuildASelfContainedApp.cs (7)
211string oldCasing = Path.Combine(packageDownloadAsset.TestRoot, packageDownloadProject.Name, "packs", runtimePack.metadata["NuGetPackageId"].ToLowerInvariant()); 212string newCasing = Path.Combine(packageDownloadAsset.TestRoot, packageDownloadProject.Name, "packs", runtimePack.metadata["NuGetPackageId"]); 218.WithEnvironmentVariable(EnvironmentVariableNames.WORKLOAD_PACK_ROOTS, Path.Combine(packageDownloadAsset.TestRoot, packageDownloadProject.Name)); 226var packagesFolder = Path.Combine(testAsset.TestRoot, testProject.Name, "packages"); 495Path.Combine(asset.Path, project.Name), 507&& i.metadata["TargetPath"] == $"{project.Name}{Constants.ExeSuffix}"); 518$"{project.Name}{Constants.ExeSuffix}");
GivenThatWeWantToBuildAWindowsRuntimeComponent.cs (1)
191var exePath = Path.Combine(buildCommand.GetOutputDirectory(consoleApp.TargetFrameworks).FullName, consoleApp.Name + ".exe");
GivenThatWeWantToBuildWithATargetPlatform.cs (3)
32var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProj.Name), targetFramework, valueName); 70var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.Path, testProj.Name), targetFramework, "TargetPlatformIdentifier"); 88var build = new BuildCommand(Log, Path.Combine(testAsset.Path, testProject.Name));
GivenThatWeWantToBuildWithGlobalJson.cs (1)
27var globalJsonPath = Path.Combine(testAsset.Path, testProject.Name, "global.json");
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (11)
96var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 127var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 159var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 195var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 232var command = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, valueName: "InformationalVersion"); 690.Restore(Log, testProject.Name); 698var assemblyPath = Path.Combine(buildCommand.GetOutputDirectory(testProject.TargetFrameworks).FullName, testProject.Name + ".dll"); 744var assemblyPath = Path.Combine(buildCommand.GetOutputDirectory(testTestProject.TargetFrameworks).FullName, testTestProject.Name + ".dll"); 776var assemblyPath = Path.Combine(buildCommand.GetOutputDirectory(testProject.TargetFrameworks).FullName, testProject.Name + ".dll"); 803var assemblyPath = Path.Combine(buildCommand.GetOutputDirectory(targetFramework).FullName, testProject.Name + ".dll"); 860var exePath = Path.Combine(buildCommand.GetOutputDirectory(testProject.TargetFrameworks).FullName, testProject.Name + ".dll");
GivenThatWeWantToCopyPPFileToOutput.cs (4)
51WriteFile(Path.Combine(packageAsset.TestRoot, referencedPackage.Name, "Nontransformed.ps1"), "Content file"); 52WriteFile(Path.Combine(packageAsset.TestRoot, referencedPackage.Name, "Test.ps1.pp"), "Content file"); 60return new TestPackageReference(referencedPackage.Name, "1.0.0", packCommand.GetNuGetPackage(referencedPackage.Name));
GivenThatWeWantToExcludeTheMainProjectFromTheDepsFile.cs (2)
33var testProjectInstance = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 36if (Path.GetFileNameWithoutExtension(path) == testProject.Name)
GivenThatWeWantToFilterSatelliteAssemblies.cs (15)
55$"{testProject.Name}.pdb", 62$"{testProject.Name}.dll", 63$"{testProject.Name}.deps.json", 64$"{testProject.Name}.runtimeconfig.json", 65$"{testProject.Name}.runtimeconfig.dev.json" 70expectedFiles.Add($"{testProject.Name}{Constants.ExeSuffix}"); 75expectedFiles.Add($"{testProject.Name}.exe"); 76expectedFiles.Add($"{testProject.Name}.exe.config"); 126$"{testProject.Name}.pdb", 133$"{testProject.Name}.dll", 134$"{testProject.Name}.deps.json", 135$"{testProject.Name}.runtimeconfig.json", 136$"{testProject.Name}.runtimeconfig.dev.json" 141expectedFiles.Add($"{testProject.Name}.exe"); 142expectedFiles.Add($"{testProject.Name}.exe.config");
GivenThatWeWantToFloatWarningLevels.cs (8)
52Path.Combine(testAsset.TestRoot, testProject.Name), 96Path.Combine(testAsset.TestRoot, testProject.Name), 141Path.Combine(testAsset.TestRoot, testProject.Name), 197Path.Combine(testAsset.TestRoot, testProject.Name), 244Path.Combine(testAsset.TestRoot, testProject.Name), 340Path.Combine(testAsset.TestRoot, testProject.Name), 357Path.Combine(testAsset.TestRoot, testProject.Name), 463var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToGenerateADepsFileForATool.cs (12)
96DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, toolProject.Name.ToLowerInvariant())); 97DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant())); 99var toolProjectInstance = _testAssetsManager.CreateTestProject(toolProject, callingMethod, identifier: toolProject.Name); 106var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name)); 120var toolReferencerInstance = _testAssetsManager.CreateTestProject(toolReferencer, callingMethod, identifier: toolReferencer.Name) 127new XAttribute("Include", toolProject.Name), 135var restoreCommand = toolReferencerInstance.GetRestoreCommand(Log, toolReferencer.Name); 138string toolAssetsFilePath = Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant(), "1.0.0", toolProject.TargetFrameworks, "project.assets.json"); 151args.Add($"/p:ToolName={toolProject.Name}"); 153string depsFilePath = Path.Combine(Path.GetDirectoryName(toolAssetsFilePath), toolProject.Name + ".deps.json"); 202l => StringComparer.OrdinalIgnoreCase.Equals(l.Name, toolProject.Name)); 205.FirstOrDefault(r => Path.GetFileNameWithoutExtension(r.Path) == toolProject.Name);
GivenThatWeWantToGenerateGlobalUsings_BlazorWasm.cs (2)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 53var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_DotNet.cs (7)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 49var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 70var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 115var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 161var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 191var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 231var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_WebApp.cs (2)
20var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 60var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs";
GivenThatWeWantToGenerateGlobalUsings_Worker.cs (2)
19var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g.cs"; 54var globalUsingsFileName = $"{testAsset.TestProject.Name}.GlobalUsings.g..cs";
GivenThatWeWantToPreserveCompilationContextForBuild.cs (2)
65using (var depsJsonFileStream = File.OpenRead(Path.Combine(outputDirectory.FullName, $"{testProject.Name}.deps.json"))) 74net462CompileAssemblies.Concat(new[] { testReference.Name + ".dll" }));
GivenThatWeWantToProduceReferenceAssembly.cs (2)
29var filePath = Path.Combine(testAsset.Path, testProject.Name, "obj", "Debug", targetFramework, "ref", $"{testProject.Name}.dll");
GivenThatWeWantToReferenceAnAssembly.cs (1)
919return Path.Combine(outputDirectory.FullName, testProject.Name + ".dll");
GivenThatWeWantToReferenceAProject.cs (14)
169File.WriteAllText(Path.Combine(childAsset.Path, childProject.Name, contentName), childProject.Name); 181.WithProjectChanges(project => AddProjectChanges(project, Path.Combine(childAsset.Path, childProject.Name, childProject.Name + ".csproj"))); 182File.WriteAllText(Path.Combine(parentAsset.Path, parentProject.Name, contentName), parentProject.Name); 187var getValuesCommand = new GetValuesCommand(Log, Path.Combine(parentAsset.Path, parentProject.Name), tfm, "ResultOutput") 197valuesResult.Should().BeEquivalentTo(Path.GetFullPath(Path.Combine(parentAsset.Path, parentProject.Name, contentName)), 198Path.GetFullPath(Path.Combine(childAsset.Path, childProject.Name, contentName))); 203valuesResult.First().Should().Contain(Path.GetFullPath(Path.Combine(parentAsset.Path, parentProject.Name, contentName))); 262if (Path.GetFileNameWithoutExtension(path) == testProjectA.Name) 269File.WriteAllText(Path.Combine(testAsset.Path, testProjectA.Name, "a.txt"), "A"); 331new XAttribute("Include", Path.Combine(path, "..", "..", testProjectA.Name, $"{testProjectA.Name}.csproj")));
GivenThatWeWantToResolveConflicts.cs (2)
70string projectFolder = Path.Combine(tempTestAsset.TestRoot, testProject.Name); 136string depsJsonPath = Path.Combine(outputFolder, $"{testProject.Name}.deps.json");
GivenThatWeWantToResolveRuntimePackAssets.cs (4)
25var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 31var projectDirectory = Path.Combine(testAsset.TestRoot, testProject.Name); 58var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 64var projectDirectory = Path.Combine(testAsset.TestRoot, testProject.Name);
GivenThatWeWantToRunFromMSBuildTarget.cs (1)
30var runTargetCommand = new MSBuildCommand(Log, "run", Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToSetPropertiesInDirectoryBuildProps.cs (2)
35var restoreCommand = testAsset.GetRestoreCommand(Log, project.Name); 42string projectFolder = Path.Combine(testAsset.Path, project.Name);
GivenThatWeWantToTargetNet471.cs (33)
59$"{testProject.Name}.exe", 60$"{testProject.Name}.exe.config", 61$"{testProject.Name}.pdb", 98$"{testProject.Name}.exe", 99$"{testProject.Name}.pdb", 100$"{netStandardProject.Name}.dll", 101$"{netStandardProject.Name}.pdb", 102$"{testProject.Name}.exe.config", // We have now added binding redirects so we should expect a config flag to be dropped to the output directory. 118var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 133$"{testProject.Name}.exe", 134$"{testProject.Name}.exe.config", 135$"{testProject.Name}.pdb", 179$"{testProject.Name}.exe", 180$"{testProject.Name}.pdb", 181$"{netStandardProject.Name}.dll", 182$"{netStandardProject.Name}.pdb", 183$"{testProject.Name}.exe.config", // We have now added binding redirects so we should expect a config flag to be dropped to the output directory. 228$"{testProject.Name}.exe", 229$"{testProject.Name}.exe.config", 230$"{testProject.Name}.pdb", 231$"{net471library.Name}.dll", 232$"{net471library.Name}.pdb", 233$"{net462library.Name}.dll", 234$"{net462library.Name}.pdb", 265$"{testProject.Name}.exe", 266$"{testProject.Name}.pdb", 267$"{testProject.Name}.exe.config", // We have now added binding redirects so we should expect a config flag to be dropped to the output directory. 297Console.WriteLine({netStandardProject.Name}.{netStandardProject.Name}Class.Name); 307if (Path.GetFileNameWithoutExtension(projectPath) == testProject.Name) 440if (Path.GetFileNameWithoutExtension(projectPath) == testProject.Name) 480var exePath = Path.Combine(buildCommand.GetOutputDirectory(testProject.TargetFrameworks).FullName, testProject.Name + ".exe"); 552if (Path.GetFileNameWithoutExtension(projectPath) == testProject.Name)
GivenThatWeWantToUseContentFiles.cs (2)
29project.SourceFiles[project.Name + ".cs"] = 33namespace {project.Name}
GivenThatWeWantToUsePlatformAnalyzers.cs (9)
50Path.Combine(testAsset.TestRoot, testProject.Name), 96Path.Combine(testAsset.TestRoot, testProject.Name), 142Path.Combine(testAsset.TestRoot, testProject.Name), 188Path.Combine(testAsset.TestRoot, testProject.Name), 234Path.Combine(testAsset.TestRoot, testProject.Name), 279var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 319Path.Combine(testAsset.TestRoot, testProject.Name), 365Path.Combine(testAsset.TestRoot, testProject.Name), 411Path.Combine(testAsset.TestRoot, testProject.Name),
GivenThatWeWantToUseVB.cs (1)
76Path.Combine(testAsset.TestRoot, testProject.Name),
GivenThatWeWantToVerifyNuGetReferenceCompat.cs (7)
55dependencyProject.Name, 69dependencyTestAsset.GetRestoreCommand(Log, relativePath: dependencyProject.Name) 74dependencyProject.Name); 104var referencerRestoreCommand = referencerTestAsset.GetRestoreCommand(Log, relativePath: referencerProject.Name); 261project.Name, 273testAsset.GetRestoreCommand(Log, relativePath: project.Name).Execute().Should().Pass(); 274var dependencyProjectDirectory = Path.Combine(testAsset.TestRoot, project.Name);
GivenThatWeWantToVerifyProjectReferenceCompat.cs (1)
49var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: referencerProject.Name);
GivenThereAreDefaultItems.cs (8)
382itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", testProject.Name + ".cs"))); 383itemGroup.Add(new XElement(ns + "Compile", new XAttribute("Include", testProject.Name + "Program.cs"))); 386var projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name); 401compileItems.Should().BeEquivalentTo(new[] { testProject.Name + ".cs", testProject.Name + "Program.cs" }); 727var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), 765var projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name); 816var projectFolder = Path.Combine(testAsset.TestRoot, testProject.Name);
GiventThatWeWantDesignerSupport.cs (1)
69Path.Combine(asset.Path, project.Name),
GivenWeWantToRequireWindowsForDesktopApps.cs (6)
129var exePath = Path.Combine(testAsset.TestRoot, testAsset.TestProject.Name, 131$"{testAsset.TestProject.Name}.exe"); 264Path.Combine(asset.Path, testProject.Name), 292Path.Combine(asset.Path, testProject.Name), 306FullAssetPath = Path.GetFullPath(Path.Combine(asset.Path, testProject.Name, item.metadata["OutputPath"])) 360Path.Combine(testAsset.Path, testProject.Name),
GlobalPropertyFlowTests.cs (2)
191new DotnetCommand(Log, "sln", "add", _testProject.Name) 197new DotnetCommand(Log, "sln", "add", _referencedProject.Name)
Net50Targeting.cs (2)
21var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 29var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), testProject.TargetFrameworks, "TargetFrameworkIdentifier");
ProjectConfigurationDescriptionTest.cs (3)
26File.WriteAllText(Path.Combine(testAsset.Path, testProj.Name, $"{testProj.Name}.cs"), @" 41var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.Path, testProj.Name));
ReferenceExeTests.cs (7)
145var mainExePath = Path.Combine(outputDirectory, MainProject.Name + Constants.ExeSuffix); 147var referencedExePath = Path.Combine(outputDirectory, ReferencedProject.Name + Constants.ExeSuffix); 356new DotnetCommand(Log, "add", "reference", ".." + Path.DirectorySeparatorChar + testConsoleProject.Name) 453File.WriteAllText(Path.Combine(testAssetSelfContained.TestRoot, mtpNotSelfContained.Name, "Directory.Build.targets"), """ 462var consoleAppDirectory = Path.Combine(testAssetSelfContained.Path, testConsoleProjectSelfContained.Name); 500string consoleProjectDirectory = Path.Combine(testAsset.Path, testConsoleProject.Name); 535var mtpProjectDirectory = Path.Combine(testAssetMTP.Path, mtpSelfContained.Name);
Microsoft.NET.Pack.Tests (12)
GivenThatThereAreImplicitPackageReferences.cs (2)
258var testProjectInstance = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier); 260var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAHelloWorldProject.cs (2)
59var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 70new PackCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name))
GivenThatWeWantToPackANetFrameworkLibrary.cs (2)
72var testProjectInstance = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier); 79var packCommand = new PackCommand(Log, testProjectInstance.TestRoot, testProject.Name);
GivenThatWeWantToPackAProjectTool.cs (4)
27.CreateTestProject(toolProject, toolProject.Name); 29var packCommand = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)); 46.CreateTestProject(toolProject, toolProject.Name); 48var result = new PackCommand(Log, Path.Combine(asset.TestRoot, toolProject.Name)).Execute();
SolutionPackTests.cs (2)
37new FileInfo(Path.Combine(packageOutputPath, testProject1.Name + ".1.0.0.nupkg")).Should().Exist(); 38new FileInfo(Path.Combine(packageOutputPath, testProject1.Name + ".1.0.0.nupkg")).Should().Exist();
Microsoft.NET.Publish.Tests (197)
FilesCopiedToPublishDirTests.cs (3)
56Path.Combine(testAsset.Path, testProject.Name), 83items.Should().ContainSingle(i => i.RelativePath.Equals($"{testProject.Name}{exeSuffix}", StringComparison.OrdinalIgnoreCase)); 97items.Should().NotContain(i => i.RelativePath.Equals($"{testProject.Name}.deps.json", StringComparison.OrdinalIgnoreCase));
GivenThatAPublishedDepsJsonShouldContainVersionInformation.cs (5)
50publishDirectory.Should().HaveFile(testProject.Name + ".deps.json"); 52var depsFilePath = Path.Combine(publishDirectory.FullName, $"{testProject.Name}.deps.json"); 142var exePath = Path.Combine(publishDirectory.FullName, testProject.Name + ".dll"); 230outputDirectory.Should().HaveFile(testProject.Name + ".deps.json"); 232var depsFilePath = Path.Combine(outputDirectory.FullName, $"{testProject.Name}.deps.json");
GivenThatWeWantToFilterSatelliteAssemblies.cs (10)
43$"{testProject.Name}.dll", 44$"{testProject.Name}.pdb", 45$"{testProject.Name}.deps.json", 46$"{testProject.Name}.runtimeconfig.json" 51files.Add($"{testProject.Name}{Constants.ExeSuffix}"); 88$"{testProject.Name}.dll", 89$"{testProject.Name}.pdb", 90$"{testProject.Name}.deps.json", 91$"{testProject.Name}.runtimeconfig.json", 92$"{testProject.Name}{EnvironmentInfo.ExecutableExtension}"
GivenThatWeWantToPublishAHelloWorldProject.cs (33)
273string outputMessage = $"Hello from {testProject.Name}!"; 289var testProjectInstance = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 326using (var depsJsonFileStream = File.OpenRead(Path.Combine(publishDirectory.FullName, $"{testProject.Name}.deps.json"))) 342var selfContainedExecutable = testProject.Name + Constants.ExeSuffix; 350$"{testProject.Name}.dll", 351$"{testProject.Name}.pdb", 352$"{testProject.Name}.deps.json", 353$"{testProject.Name}.runtimeconfig.json", 367.OnlyHaveNativeAssembliesWhichAreInFolder(rid, publishDirectory.FullName, testProject.Name); 374$"{testProject.Name}.dll", 375$"{testProject.Name}.pdb", 376$"{testProject.Name}.deps.json", 377$"{testProject.Name}.runtimeconfig.json" 384.OnlyHaveRuntimeAssemblies(rid ?? "", testProject.Name); 386runCommand = new DotnetCommand(Log, Path.Combine(publishDirectory.FullName, $"{testProject.Name}.dll")); 620.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name)) 645.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name)) 723var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: tfm); 752var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name) 807var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name, identifier: type) 862var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 885$"{testProject.Name}.dll", 886$"{testProject.Name}.pdb", 887$"{testProject.Name}.deps.json", 888$"{testProject.Name}.runtimeconfig.json", 908output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 912output.Should().NotHaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 945var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 946var projectPath = Path.Combine(projectDirectory, $"{testProject.Name}.csproj"); 992var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 1049var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 1096var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1152TestCommand runCommand = new RunExeCommand(Log, Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"));
GivenThatWeWantToPublishAnAotApp.cs (33)
47var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 61var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 67DoSymbolsExist(publishDirectory, testProject.Name).Should().BeTrue($"{publishDirectory} should contain {testProject.Name} symbol"); 104var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 149var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 150var publishedRuntimeConfig = Path.Combine(publishDirectory, $"{testProject.Name}.runtimeconfig.json"); 151var publishedDeps = Path.Combine(publishDirectory, $"{testProject.Name}.deps.json"); 160DoSymbolsExist(publishDirectory, testProject.Name).Should().BeTrue($"{publishDirectory} should contain {testProject.Name} symbol"); 201var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 202var publishedRuntimeConfig = Path.Combine(publishDirectory, $"{testProject.Name}.runtimeconfig.json"); 203var publishedDeps = Path.Combine(publishDirectory, $"{testProject.Name}.deps.json"); 212DoSymbolsExist(publishDirectory, testProject.Name).Should().BeTrue($"{publishDirectory} should contain {testProject.Name} symbol"); 296var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 302DoSymbolsExist(publishDirectory, testProject.Name).Should().BeTrue($"{publishDirectory} should contain {testProject.Name} symbol"); 339var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 369var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 415var publishedExe = Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"); 464var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 488var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 512var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 535var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 565var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 584var buildCommand = new BuildCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 599var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 699var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 743var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}"); 838var publishedExe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}"); 896var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 942var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToPublishASingleFileApp.cs (12)
288string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}", $"{testProject.Name}.pdb" }; 328var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{Constants.ExeSuffix}"); 420string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}" }; 480string[] expectedFiles = { $"{testProject.Name}{Constants.ExeSuffix}" }; 569$"{testProject.Name}{Constants.ExeSuffix}"); 636var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 656var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 672var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 827var singleFilePath = Path.Combine(publishDir, $"{testProject.Name}{Constants.ExeSuffix}"); 870string singleFilePath = Path.Combine(publishDir.FullName, $"{testProject.Name}.exe"); 1169var singleFilePath = Path.Combine(publishDir, testProject.Name);
GivenThatWeWantToPublishAWebApp.cs (18)
87$"{testProject.Name}{Constants.ExeSuffix}", 88$"{testProject.Name}.dll", 89$"{testProject.Name}.pdb", 90$"{testProject.Name}.deps.json", 91$"{testProject.Name}.runtimeconfig.json", 101new RunExeCommand(Log, Path.Combine(output.FullName, $"{testProject.Name}{Constants.ExeSuffix}")) 146$"{testProject.Name}{Constants.ExeSuffix}", 147$"{testProject.Name}.dll", 148$"{testProject.Name}.pdb", 149$"{testProject.Name}.deps.json", 150$"{testProject.Name}.runtimeconfig.json", 185var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 208$"{testProject.Name}.dll", 209$"{testProject.Name}.pdb", 210$"{testProject.Name}.deps.json", 211$"{testProject.Name}.runtimeconfig.json" 231output.Should().HaveFile($"{testProject.Name}{Constants.ExeSuffix}"); 235output.Should().NotHaveFile($"{testProject.Name}{Constants.ExeSuffix}");
GivenThatWeWantToPublishIncrementally.cs (32)
24var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 38.Select(ending => testProject.Name + ending); 39var expectedSingleExeFiles = new string[] { ".exe", ".pdb" }.Select(ending => testProject.Name + ending); 63var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 79CheckPublishOutput(publishDir, expectedSingleExeFileExtensions.Select(ending => testProject.Name + ending), null); 82File.WriteAllText(Path.Combine(publishDir, testProject.Name + ".deps.json"), string.Empty); 86File.Move(Path.Combine(testAsset.TestRoot, testProject.Name, testProject.Name + ".csproj"), 87Path.Combine(testAsset.TestRoot, testProject.Name, newName + ".csproj")); 94CheckPublishOutput(publishDir, expectedSingleExeFileExtensions.Select(ending => newName + ending).Append("UserData.txt").Append(testProject.Name + ".deps.json"), 95expectedSingleExeFileExtensions.Select(ending => testProject.Name + ending)); 108var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 122var expectedSingleExeFiles = new string[] { ".exe", ".pdb" }.Select(ending => testProject.Name + ending); 127File.WriteAllText(Path.Combine(publishDir, testProject.Name + ".dll"), string.Empty); 134CheckPublishOutput(publishDir, expectedSingleExeFiles.Append(testProject.Name + ".dll"), null); 150var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 162.Select(ending => testProject.Name + ending); 163var expectedSingleExeFiles = new string[] { ".exe", ".pdb" }.Select(ending => testProject.Name + ending); 226var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 229var publishDir = Path.Combine(testAsset.TestRoot, testProject.Name, publishOutputFolder); 231.Select(ending => testProject.Name + ending); 232var expectedSingleExeFiles = new string[] { ".exe", ".pdb" }.Select(ending => testProject.Name + ending); 261var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 265var publishDir1 = Path.Combine(testAsset.TestRoot, testProject.Name, publishOutputFolder1); 266var publishDir2 = Path.Combine(testAsset.TestRoot, testProject.Name, publishOutputFolder2); 268.Select(ending => testProject.Name + ending); 269var expectedSingleExeFiles = new string[] { ".exe", ".pdb" }.Select(ending => testProject.Name + ending); 289File.Move(Path.Combine(testAsset.TestRoot, testProject.Name, testProject.Name + ".csproj"), 290Path.Combine(testAsset.TestRoot, testProject.Name, newName + ".csproj")); 314var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 318var depsJsonPath = Path.Combine(publishDir, testProject.Name + ".deps.json");
GivenThatWeWantToPublishReadyToRun.cs (1)
258var publishCommand = new PublishCommand(Log, Path.Combine(testProjectInstance.Path, testProject.Name));
GivenThatWeWantToPublishToClickOnce.cs (23)
35var projectDirectory = Path.Combine(testProjectInstance.Path, testProject.Name); 87$"{testProject.Name}.application", 88$"application files\\{testProject.Name}_1_2_3_4\\launcher{Constants.ExeSuffix}", 94$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}{Constants.ExeSuffix}", 95$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.dll.manifest", 98$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.dll", 99$"application files\\{testProject.Name}_1_2_3_4\\Newtonsoft.Json.dll", 100$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.deps.json", 106$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.dll", 107$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.dll.manifest", 108$"application files\\{testProject.Name}_1_2_3_4\\Newtonsoft.Json.dll", 109$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.deps.json", 110$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}.runtimeconfig.json", 111$"application files\\{testProject.Name}_1_2_3_4\\{testProject.Name}{Constants.ExeSuffix}",
GivenThatWeWantToPublishWithoutConflicts.cs (3)
30var testAsset = _testAssetsManager.CreateTestProject(testProject, testProject.Name); 32var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "ResolvedFileToPublish", GetValuesCommand.ValueType.Item) 71var getValuesCommand = new GetValuesCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name), targetFramework, "ResolvedFileToPublish", GetValuesCommand.ValueType.Item)
GivenThatWeWantToRunILLink.cs (5)
132var exe = Path.Combine(publishDirectory.FullName, $"{testProject.Name}{Constants.ExeSuffix}"); 890var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 988var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1008var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 1025var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
GivenThatWeWantToStoreAProjectWithDependencies.cs (1)
286new ComposeStoreCommand(Log, testProjectInstance.TestRoot, testProject.Name)
GivenThatWeWantToTestAMultitargetedSolutionWithPublishReleaseOrPackRelease.cs (1)
363.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name))
PublishDepsFilePathTests.cs (2)
20var projectPath = Path.Combine(testAsset.Path, testProject.Name); 42var projectPath = Path.Combine(testAsset.Path, testProject.Name);
PublishItemsOutputGroupOutputsTests.cs (4)
56Path.Combine(testAsset.Path, testProject.Name), 70OutputPath = Path.GetFileName(Path.GetFullPath(Path.Combine(testAsset.Path, testProject.Name, item.metadata["OutputPath"]))) 83items.Should().ContainSingle(i => i.OutputPath.Equals($"{testProject.Name}{exeSuffix}", StringComparison.OrdinalIgnoreCase)); 90items.Should().Contain(i => i.OutputPath.Equals($"{testProject.Name}.deps.json", StringComparison.OrdinalIgnoreCase));
PublishItemsOutputGroupTests.cs (3)
40Path.Combine(testAsset.Path, testProject.Name), 71ContainSingle(i => i.TargetPath.Equals($"{testProject.Name}{exeSuffix}", StringComparison.OrdinalIgnoreCase)); 87items.Should().ContainSingle(i => i.TargetPath.Equals($"{testProject.Name}.deps.json", StringComparison.OrdinalIgnoreCase));
PublishWebApp.cs (1)
51FileName = Path.Combine(publishDirectory.FullName, testProject.Name + EnvironmentInfo.ExecutableExtension)
RuntimeIdentifiersTests.cs (7)
63var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}"; 105var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}"; 172var selfContainedExecutable = $"{testProject.Name}{Constants.ExeSuffix}"; 217.WithWorkingDirectory(Path.Combine(testAsset.TestRoot, testProject.Name)) 283var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 329var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name)); 379var publishCommand = new DotnetPublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
Microsoft.NET.Restore.Tests (26)
GivenThatWeWantAutomaticTargetingPackReferences.cs (7)
38testProject.Name, 43testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 91testProject.Name, 95var restoreCommand = testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 158testProject.Name, 163testAsset.GetRestoreCommand(Log, relativePath: testProject.Name); 200testProject.Name,
GivenThatWeWantRestoreToUseImplicitPackages.cs (2)
33project.Name, 67project.Name,
GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs (3)
27TestAsset toolProjectInstance = _testAssetsManager.CreateTestProject(toolProject, identifier: toolProject.Name) 41RestoreCommand restoreCommand = toolProjectInstance.GetRestoreCommand(Log, toolProject.Name); 47string toolAssetsFilePath = Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant(), "99.99.99", toolProject.TargetFrameworks, "project.assets.json");
GivenThatWeWantToRestoreDotNetCliToolReference.cs (8)
32var toolProjectInstance = _testAssetsManager.CreateTestProject(toolProject, identifier: toolProject.Name); 34var packCommand = new PackCommand(Log, Path.Combine(toolProjectInstance.TestRoot, toolProject.Name)); 47new TestPackageReference(id: toolProject.Name, 51TestAsset toolReferenceProjectInstance = _testAssetsManager.CreateTestProject(toolReferenceProject, identifier: toolReferenceProject.Name); 53DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, toolProject.Name.ToLowerInvariant())); 54DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant())); 58toolReferenceProjectInstance.GetRestoreCommand(log: Log, relativePath: toolReferenceProject.Name); 65toolProject.Name.ToLowerInvariant(),
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (5)
133projectInNuGetFallbackFolder.Name, 143relativePath: projectInNuGetFallbackFolder.Name).Execute().Should().Pass(); 146projectInNuGetFallbackFolder.Name); 153Path.Combine(TestContext.Current.NuGetFallbackFolder, $"{projectInNuGetFallbackFolder.Name}.1.0.0.nupkg")); 156DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, projectInNuGetFallbackFolder.Name.ToLowerInvariant()));
RestoreWithOlderNuGet.cs (1)
24var restoreCommand = new NuGetExeRestoreCommand(Log, testAsset.Path, testProject.Name)
Microsoft.NET.Sdk.Web.Tests (1)
PublishTests.cs (1)
91var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
Microsoft.NET.TestFramework (24)
Commands\DotnetBuildCommand.cs (4)
22if (testAsset.TestProject != null && testAsset.TestProject.Name is not null) 24WorkingDirectory = Path.Combine(testAsset.TestRoot, testAsset.TestProject.Name); 34Debug.Assert(TestAsset?.TestProject?.Name != null); 35var projectPath = Path.Combine(TestAsset.Path, TestAsset.TestProject.Name);
Commands\MSBuildCommand.cs (1)
35: this(testAsset.Log, target, testAsset.TestRoot, relativePathToProject ?? testAsset.TestProject?.Name, requiredArgs)
OutputPathCalculator.cs (2)
34if (projectPath == null && testProject != null && testProject.Name is not null && originalProjectPath is not null) 36projectPath = Path.Combine(originalProjectPath, testProject.Name);
ProjectConstruction\TestProject.cs (15)
131string targetFolder = Path.Combine(targetTestAsset.Path, Name ?? string.Empty); 134string targetProjectPath = Path.Combine(targetFolder, Name + TargetExtension); 312new XAttribute("Include", $"../{referencedProject.Name}/{referencedProject.Name}{referencedProject.TargetExtension}"))); 428string? safeDependencyName = dependency.Name?.Replace('.', '_'); 437string sourcePath = Path.Combine(targetFolder, Name + "Program.cs"); 443string? safeThisName = Name?.Replace('.', '_'); 452public static string Name {{ get {{ return ""{Name}""; }} }} 457string? safeDependencyName = dependency.Name?.Replace('.', '_'); 466string sourcePath = Path.Combine(targetFolder, Name + ".cs"); 502string intermediateOutputPath = Path.Combine(testRoot, Name ?? string.Empty, "obj", configuration, targetFramework ?? TargetFrameworks); 520return OutputPathCalculator.FromProject(Path.Combine(testRoot, Name ?? string.Empty, Name + ".csproj"), this); 531Debug.Assert(Name != null); 535return Name + extension;
TestAssetsManager.cs (2)
70GetTestDestinationDirectoryPath(testProject.Name, callingMethod, identifier); 114new DotnetCommand(Log, "sln", "add", testProject.Name ?? string.Empty)
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (1)
400var packCommand = new PackCommand(Log, Path.Combine(asset.Path, testProject.Name));