248 references to WithProjectChanges
dotnet.Tests (9)
CommandTests\Package\List\GivenDotnetListPackage.cs (1)
79
.
WithProjectChanges
(ChangeTargetFrameworkTo2_1);
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (3)
700
.
WithProjectChanges
(ProjectModification.AddDisplayMessageBeforeRestoreToProject);
721
.
WithProjectChanges
(ProjectModification.AddDisplayMessageBeforeRestoreToProject);
737
.
WithProjectChanges
(ProjectModification.AddDisplayMessageBeforeRestoreToProject);
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestfromCsproj.cs (2)
619
.
WithProjectChanges
(ProjectModification.AddDisplayMessageBeforeVsTestToProject);
666
.
WithProjectChanges
(ProjectModification.AddDisplayMessageBeforeVsTestToProject);
PackagedCommandTests.cs (1)
52
testInstance = testInstance.
WithProjectChanges
(project =>
TestAssetExtensions.cs (2)
19
return testAssetInstance.
WithProjectChanges
(project =>
40
return testAsset.
WithProjectChanges
(project =>
dotnet-watch.Tests (8)
Build\EvaluationTests.cs (1)
64
.
WithProjectChanges
(d => d.Root!.Add(XElement.Parse("""
HotReload\ApplyDeltaTests.cs (6)
241
.
WithProjectChanges
(project =>
273
.
WithProjectChanges
(project =>
410
.
WithProjectChanges
(project =>
494
.
WithProjectChanges
(project =>
761
testAsset = testAsset.
WithProjectChanges
(proj =>
818
.
WithProjectChanges
(proj =>
HotReload\RuntimeProcessLauncherTests.cs (1)
699
.
WithProjectChanges
(project =>
EndToEnd.Tests (3)
GivenDotNetUsesMSBuild.cs (2)
50
.
WithProjectChanges
(project =>
84
.
WithProjectChanges
(project =>
GivenWeWantToRequireWindowsForDesktopApps.cs (1)
63
.
WithProjectChanges
(overrideLastRuntimeFrameworkVersionToExistingOlderVersion);
Microsoft.NET.Build.Tests (100)
AppHostTests.cs (1)
355
.
WithProjectChanges
(project =>
COMReferenceTests.cs (2)
53
.
WithProjectChanges
(doc => doc.Root.Add(reference));
112
.
WithProjectChanges
(doc => doc.Root.Add(new[] { reference1, reference2 }));
DepsFileSkipTests.cs (2)
124
.
WithProjectChanges
(project => AddSkipTarget(project, filenameToSkip));
164
.
WithProjectChanges
(project => AddSkipTarget(project, filenameToSkip));
DesignTimeBuildTests.cs (2)
33
.
WithProjectChanges
(p =>
210
.
WithProjectChanges
(p =>
GivenFrameworkReferences.cs (8)
196
.
WithProjectChanges
(project =>
235
.
WithProjectChanges
(project =>
275
.
WithProjectChanges
(project =>
443
.
WithProjectChanges
(project =>
955
var testAsset = _testAssetsManager.CreateTestProject(testProject).
WithProjectChanges
((project) =>
1080
.
WithProjectChanges
(project =>
1126
testAsset = testAsset.
WithProjectChanges
(projectChanges);
1157
testAsset = testAsset.
WithProjectChanges
(projectChanges);
GivenThatWeWantAllResourcesInSatellite.cs (1)
35
testAsset = testAsset.
WithProjectChanges
(projectChanges);
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (3)
71
testAsset = testAsset.
WithProjectChanges
(project =>
106
testAsset = testAsset.
WithProjectChanges
(project =>
132
testAsset = testAsset.
WithProjectChanges
(project =>
GivenThatWeWantToBuildAComServerLibrary.cs (11)
52
.
WithProjectChanges
(project =>
85
.
WithProjectChanges
(project =>
115
.
WithProjectChanges
(project =>
137
.
WithProjectChanges
(project =>
158
.
WithProjectChanges
(proj => proj.Root.Add(new XElement("ItemGroup", new XElement("ComHostTypeLibrary", new XAttribute("Include", "dummy1.tlb")))));
173
.
WithProjectChanges
(proj =>
194
.
WithProjectChanges
(proj =>
219
.
WithProjectChanges
(proj =>
239
.
WithProjectChanges
(proj =>
258
.
WithProjectChanges
(proj => proj.Root.Add(new XElement("ItemGroup", new XElement("ComHostTypeLibrary", new XAttribute("Include", "doesnotexist.tlb")))));
275
.
WithProjectChanges
(proj => proj.Root.Add(new XElement("ItemGroup", new XElement("ComHostTypeLibrary", new XAttribute("Include", "invalid.tlb")))));
GivenThatWeWantToBuildACrossTargetedLibrary.cs (1)
88
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildADesktopExe.cs (10)
199
.
WithProjectChanges
(project =>
243
.
WithProjectChanges
(project =>
272
.
WithProjectChanges
(project =>
471
.
WithProjectChanges
(p =>
502
.
WithProjectChanges
(p =>
567
.
WithProjectChanges
(p =>
652
.
WithProjectChanges
(p =>
721
.
WithProjectChanges
(p =>
815
.
WithProjectChanges
(project =>
908
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildADesktopExeWithFSharp.cs (1)
21
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildADesktopLibrary.cs (2)
350
.
WithProjectChanges
(p =>
526
.
WithProjectChanges
(p =>
GivenThatWeWantToBuildALibrary.cs (7)
85
testAsset.
WithProjectChanges
(projectChanges);
123
.
WithProjectChanges
(project =>
332
.
WithProjectChanges
(project =>
405
.
WithProjectChanges
(project =>
445
.
WithProjectChanges
(project =>
658
testAsset = testAsset.
WithProjectChanges
(project =>
758
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildALibraryWithFSharp.cs (2)
78
testAsset.
WithProjectChanges
(projectChanges);
179
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildALibraryWithVB.cs (2)
89
testAsset.
WithProjectChanges
(projectChanges);
197
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildAnAppWithLibrariesAndRid.cs (1)
75
testAsset = testAsset.
WithProjectChanges
(project =>
GivenThatWeWantToBuildANetCoreApp.cs (3)
338
.
WithProjectChanges
(p =>
462
.
WithProjectChanges
(p =>
586
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildANetStandard2Library.cs (1)
53
.
WithProjectChanges
(p =>
GivenThatWeWantToBuildASelfContainedApp.cs (7)
35
.
WithProjectChanges
(project =>
95
.
WithProjectChanges
(project =>
123
.
WithProjectChanges
(project =>
418
.
WithProjectChanges
(project =>
461
.
WithProjectChanges
(project =>
568
.
WithProjectChanges
(project =>
611
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildASolutionWithNonDefaultConfiguration.cs (1)
25
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildASolutionWithNonDefaultConfigurationVB.cs (1)
25
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildAWindowsDesktopProject.cs (1)
438
.
WithProjectChanges
(project =>
GivenThatWeWantToBuildWithARuntimeIdentifier.cs (1)
36
.
WithProjectChanges
(project =>
GivenThatWeWantToCollectExceptionTelemetry.cs (1)
21
.
WithProjectChanges
(projectFile =>
GivenThatWeWantToCopyPPFileToOutput.cs (1)
54
.
WithProjectChanges
(project => AddContent(project));
GivenThatWeWantToGenerateADepsFileForATool.cs (1)
121
.
WithProjectChanges
(project =>
GivenThatWeWantToIncludeItemsOutsideTheProjectFolder.cs (1)
25
.
WithProjectChanges
(project =>
GivenThatWeWantToReferenceAProject.cs (2)
168
.
WithProjectChanges
(project => AddProjectChanges(project));
181
.
WithProjectChanges
(project => AddProjectChanges(project, Path.Combine(childAsset.Path, childProject.Name, childProject.Name + ".csproj")));
GivenThatWeWantToResolveConflicts.cs (3)
159
.
WithProjectChanges
(p =>
213
.
WithProjectChanges
(project =>
248
.
WithProjectChanges
(project =>
GivenThatWeWantToResolveRuntimePackAssets.cs (2)
26
.
WithProjectChanges
(project =>
59
.
WithProjectChanges
(project =>
GivenThatWeWantToUseAnalyzers.cs (5)
24
.
WithProjectChanges
(project =>
46
.
WithProjectChanges
(project =>
65
.
WithProjectChanges
(project =>
97
.
WithProjectChanges
(project =>
234
.
WithProjectChanges
(project =>
GivenThereAreDefaultItems.cs (6)
376
.
WithProjectChanges
(project =>
460
.
WithProjectChanges
(projectChanges);
521
.
WithProjectChanges
(project =>
553
.
WithProjectChanges
(project =>
590
.
WithProjectChanges
(project =>
628
.
WithProjectChanges
(project =>
GivenWeWantToRequireWindowsForDesktopApps.cs (1)
342
var testAsset = _testAssetsManager.CreateTestProject(testProject).
WithProjectChanges
((project) =>
KnownRuntimePackTests.cs (1)
159
testAsset.
WithProjectChanges
(project =>
NonCopyLocalProjectReferenceTests.cs (1)
38
.
WithProjectChanges
(doc =>
RoslynBuildTaskTests.cs (1)
36
var testAsset = CreateProject(useSharedCompilation, language).
WithProjectChanges
(static doc =>
SourceLinkTests.cs (3)
64
=> testAsset.
WithProjectChanges
(p =>
72
=> testAsset.
WithProjectChanges
(p =>
84
=> testAsset.
WithProjectChanges
(p =>
Microsoft.NET.Pack.Tests (4)
GivenThatWeWantToPackAHelloWorldProject.cs (3)
60
.
WithProjectChanges
(project =>
109
.
WithProjectChanges
(project =>
136
.
WithProjectChanges
(project =>
GivenThatWeWantToPackANetFrameworkLibrary.cs (1)
76
testProjectInstance = testProjectInstance.
WithProjectChanges
(xmlAction);
Microsoft.NET.Publish.Tests (59)
GivenThatWeWantToExcludeAPackageFromPublish.cs (3)
24
.
WithProjectChanges
(project =>
75
.
WithProjectChanges
(project =>
125
.
WithProjectChanges
(project =>
GivenThatWeWantToPublishAHelloWorldProject.cs (8)
290
.
WithProjectChanges
(p =>
453
.
WithProjectChanges
(project =>
554
.
WithProjectChanges
(project =>
585
.
WithProjectChanges
(project =>
668
.
WithProjectChanges
(project =>
753
.
WithProjectChanges
(project =>
808
.
WithProjectChanges
(project =>
935
.
WithProjectChanges
(project =>
GivenThatWeWantToPublishAnAotApp.cs (7)
138
.
WithProjectChanges
(project => AddRuntimeConfigOption(project));
189
.
WithProjectChanges
(project => AddRuntimeConfigOption(project));
234
.
WithProjectChanges
(project => AddRuntimeConfigOption(project));
510
.
WithProjectChanges
(project => OverrideKnownILCompilerPackRuntimeIdentifiers(project, $"{rid};"));
533
.
WithProjectChanges
(project => OverrideKnownILCompilerPackRuntimeIdentifiers(project, $"{supportedTargetRid};"));
667
.
WithProjectChanges
(AddTargetFrameworkAliases);
1003
.
WithProjectChanges
(project =>
GivenThatWeWantToPublishAProjectWithDependencies.cs (2)
111
.
WithProjectChanges
(projectFile =>
160
.
WithProjectChanges
(projectFile =>
GivenThatWeWantToPublishASelfContainedApp.cs (1)
82
.
WithProjectChanges
(doc =>
GivenThatWeWantToPublishASingleFileApp.cs (4)
60
.
WithProjectChanges
(projectChanges);
738
.
WithProjectChanges
(AddTargetFrameworkAliases);
1022
.
WithProjectChanges
(project => VerifyPrepareForBundle(project));
1080
.
WithProjectChanges
(project => VerifyPrepareForBundle(project));
GivenThatWeWantToPublishAToolProjectWithPackagedShim.cs (1)
23
.
WithProjectChanges
(project =>
GivenThatWeWantToRunILLink.cs (32)
82
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project));
151
.
WithProjectChanges
(project =>
218
.
WithProjectChanges
(AddTargetFrameworkAliases);
278
.
WithProjectChanges
(project => SetMetadata(project, referenceProjectName, "IsTrimmable", "True"));
304
.
WithProjectChanges
(project => SetMetadata(project, referenceProjectName, "TrimMode", "link"));
341
.
WithProjectChanges
(project => SetGlobalTrimMode(project, trimMode))
342
.
WithProjectChanges
(project => SetMetadata(project, referenceProjectName, "IsTrimmable", "True"))
343
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{referenceProjectName}.xml"));
378
.
WithProjectChanges
(project => SetGlobalTrimMode(project, "link"))
379
.
WithProjectChanges
(project => SetMetadata(project, projectName, "IsTrimmable", "True"));
466
.
WithProjectChanges
(project => SetGlobalTrimMode(project, "partial"))
467
.
WithProjectChanges
(project => SetMetadata(project, "UnusedTrimmableAssembly", "IsTrimmable", "false"))
468
.
WithProjectChanges
(project => SetMetadata(project, "UnusedNonTrimmableAssembly", "IsTrimmable", "true"));
522
.
WithProjectChanges
(project => SetGlobalTrimMode(project, trimMode));
562
.
WithProjectChanges
(project => SetTrimmerDefaultAction(project, "link"));
771
.
WithProjectChanges
(project =>
809
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{projectName}.xml"));
1116
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project))
1117
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{referenceProjectName}.xml"));
1178
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project))
1180
.
WithProjectChanges
(project => AddRuntimeConfigOption(project, trim: true))
1181
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{referenceProjectName}.xml"));
1212
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project))
1214
.
WithProjectChanges
(project => AddRuntimeConfigOption(project, trim: false))
1215
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{referenceProjectName}.xml"));
1348
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project))
1349
.
WithProjectChanges
(project => AddRootDescriptor(project, $"{referenceProjectName}.xml"));
1375
testAsset = testAsset.
WithProjectChanges
(project => RemoveRootDescriptor(project));
1402
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project));
1440
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project));
1477
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project));
1506
.
WithProjectChanges
(project => EnableNonFrameworkTrimming(project));
PublishWebApp.cs (1)
27
.
WithProjectChanges
(project =>
Microsoft.NET.Restore.Tests (3)
GivenThatWeWantAutomaticTargetingPackReferences.cs (2)
75
testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: includeExplicitReference.ToString()).
WithProjectChanges
(project =>
141
var testAsset = _testAssetsManager.CreateTestProject(testProject).
WithProjectChanges
(project =>
GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs (1)
28
.
WithProjectChanges
(project =>
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (17)
WasmBuildIntegrationTest.cs (8)
278
testInstance.
WithProjectChanges
((project) =>
310
testInstance.
WithProjectChanges
((project) =>
348
testInstance.
WithProjectChanges
((project) =>
386
testInstance.
WithProjectChanges
((project) =>
429
testInstance.
WithProjectChanges
((project) =>
473
testInstance.
WithProjectChanges
((project) =>
515
testInstance.
WithProjectChanges
((project) =>
819
testInstance.
WithProjectChanges
((project) =>
WasmBuildLazyLoadTest.cs (6)
22
testInstance.
WithProjectChanges
((project) =>
74
testInstance.
WithProjectChanges
((project) =>
126
testInstance.
WithProjectChanges
((project) =>
178
testInstance.
WithProjectChanges
((project) =>
230
testInstance.
WithProjectChanges
((project) =>
251
testInstance.
WithProjectChanges
((project) =>
WasmJsModulesIntegrationTests.cs (2)
169
ProjectDirectory.
WithProjectChanges
(document =>
213
ProjectDirectory.
WithProjectChanges
(document =>
WasmPublishIntegrationTest.cs (1)
1469
testInstance.
WithProjectChanges
((project) =>
Microsoft.NET.Sdk.Razor.Tests (4)
BuildIntegrationTest.cs (1)
136
.
WithProjectChanges
(project =>
BuildIntrospectionTest.cs (2)
44
.
WithProjectChanges
(p =>
79
.
WithProjectChanges
(p =>
PublishIntegrationTest.cs (1)
108
.
WithProjectChanges
(project =>
Microsoft.NET.Sdk.StaticWebAssets.Tests (26)
JsModulesIntegrationTest.cs (2)
34
.
WithProjectChanges
(p => {
92
.
WithProjectChanges
(p => {
ScopedCssIntegrationTests.cs (1)
70
.
WithProjectChanges
(project =>
StaticWebAssetEndpointsIntegrationTest.cs (1)
294
.
WithProjectChanges
(document =>
StaticWebAssetsCrossTargetingTests.cs (2)
24
ProjectDirectory.
WithProjectChanges
(d =>
68
ProjectDirectory.
WithProjectChanges
(d =>
StaticWebAssetsFingerprintingTest.cs (2)
20
.
WithProjectChanges
(p => {
99
ProjectDirectory.
WithProjectChanges
(p =>
StaticWebAssetsIntegrationTest.cs (1)
583
.
WithProjectChanges
(document =>
StaticWebAssetsPackIntegrationTest.cs (17)
16
.
WithProjectChanges
(project =>
100
projectDirectory.
WithProjectChanges
(project =>
402
projectDirectory.
WithProjectChanges
(document =>
471
projectDirectory.
WithProjectChanges
(document =>
539
projectDirectory.
WithProjectChanges
(document =>
613
projectDirectory.
WithProjectChanges
(document =>
686
projectDirectory.
WithProjectChanges
(document =>
755
projectDirectory.
WithProjectChanges
(document =>
823
projectDirectory.
WithProjectChanges
(document =>
890
projectDirectory.
WithProjectChanges
(document =>
956
projectDirectory.
WithProjectChanges
(document =>
1028
projectDirectory.
WithProjectChanges
(document =>
1099
projectDirectory.
WithProjectChanges
(document =>
1166
projectDirectory.
WithProjectChanges
(document =>
1232
projectDirectory.
WithProjectChanges
(document =>
1307
projectDirectory.
WithProjectChanges
(document =>
1384
projectDirectory.
WithProjectChanges
(document =>
Microsoft.NET.TestFramework (5)
AspNetSdkTest.cs (2)
43
.
WithProjectChanges
(project =>
80
.
WithProjectChanges
(project =>
TestAsset.cs (3)
121
return
WithProjectChanges
(
140
return
WithProjectChanges
(
156
return
WithProjectChanges
(project =>
Microsoft.NET.ToolPack.Tests (10)
GivenThatWeWantToPackAToolProject.cs (2)
28
.
WithProjectChanges
(project =>
78
.
WithProjectChanges
(project =>
GivenThatWeWantToPackAToolProjectWithComplexNugetDependency.cs (1)
25
.
WithProjectChanges
(project =>
GivenThatWeWantToPackAToolProjectWithExplicitConfig.cs (2)
25
.
WithProjectChanges
(project =>
61
.
WithProjectChanges
(project =>
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (2)
56
.
WithProjectChanges
(project =>
146
.
WithProjectChanges
(project =>
GivenThatWeWantToPackAToolSelfContainedProject.cs (1)
51
.
WithProjectChanges
(project =>
GivenThatWeWantToPackAToolTargetingNonSupportedTFM.cs (1)
33
.
WithProjectChanges
(project =>
PackWithShimsAndResultNugetPackageNuGetPackagexFixture.cs (1)
69
.
WithProjectChanges
(project =>