54 references to WithTargetFramework
dotnet.Tests (4)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (1)
251.WithTargetFramework("netcoreapp3.1")
CommandTests\Test\GivenDotnetTestBuildsAndRunsHelp.cs (1)
46testInstance.WithTargetFramework($"{DotnetVersionHelper.GetPreviousDotnetVersion()}", "TestProject");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTests.cs (1)
387testInstance.WithTargetFramework($"{DotnetVersionHelper.GetPreviousDotnetVersion()}", "TestProject");
CommandTests\Test\GivenDotnetTestBuildsAndRunsTestsForMultipleTFMs.cs (1)
26testInstance.WithTargetFramework($"{DotnetVersionHelper.GetPreviousDotnetVersion()}", "TestProject");
Microsoft.NET.Build.Tests (34)
AppHostTests.cs (5)
50.WithTargetFramework(targetFramework) 94.WithTargetFramework(targetFramework); 141.WithTargetFramework(targetFramework); 178.WithTargetFramework(targetFramework); 208.WithTargetFramework(targetFramework)
DesignTimeBuildTests.cs (1)
41.WithTargetFramework(targetFramework, relativeProjectPath);
GivenThatAProjectHasntBeenRestored.cs (1)
24.WithTargetFramework(targetFramework, relativeProjectPath);
GivenThatWeWantBuildsToBeIncremental.cs (2)
20.WithTargetFramework(targetFramework); 43.WithTargetFramework(targetFramework);
GivenThatWeWantMSBuildToRespectCustomCulture.cs (2)
20.WithTargetFramework(targetFramework); 38.WithTargetFramework(targetFramework);
GivenThatWeWantRuntimeConfigInBuiltProjectOutputGroup.cs (1)
22.WithTargetFramework(targetFramework);
GivenThatWeWantToBuildADesktopExe.cs (1)
24.WithTargetFramework(targetFramework);
GivenThatWeWantToBuildADesktopExeWithFSharp.cs (1)
51.WithTargetFramework("net5.0");
GivenThatWeWantToBuildALibrary.cs (4)
28.WithTargetFramework(targetFramework, "TestLibrary"); 404.WithTargetFramework(targetFramework) 444.WithTargetFramework(targetFramework) 1132.WithTargetFramework(targetFramework, "TestLibrary");
GivenThatWeWantToBuildASelfContainedApp.cs (5)
34.WithTargetFramework(targetFramework) 417.WithTargetFramework(targetFramework) 460.WithTargetFramework(targetFramework) 567.WithTargetFramework(targetFramework) 610.WithTargetFramework(targetFramework)
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (8)
345.WithTargetFramework("netstandard2.0") 374.WithTargetFramework(targetFramework) 440.WithTargetFramework(ToolsetInfo.CurrentTargetFramework) 537.WithTargetFramework("netstandard2.0") 564.WithTargetFramework("netstandard2.0") 590.WithTargetFramework("netstandard2.0") 617.WithTargetFramework("netstandard2.0") 643.WithTargetFramework("netstandard2.0")
GivenThatWeWantToUseAnalyzers.cs (1)
85.WithTargetFramework(targetFramework);
MetadataUpdaterSupportTest.cs (2)
19.WithTargetFramework("net6.0"); 43.WithTargetFramework("net6.0");
Microsoft.NET.Pack.Tests (1)
GivenThatWeWantToPackAHelloWorldProject.cs (1)
166.WithTargetFramework(tfm);
Microsoft.NET.Publish.Tests (13)
GivenThatWeWantToExcludeAPackageFromPublish.cs (3)
23.WithTargetFramework(targetFramework) 74.WithTargetFramework(targetFramework) 124.WithTargetFramework(targetFramework)
GivenThatWeWantToPublishAFrameworkDependentApp.cs (2)
44.WithTargetFramework(targetFramework); 105.WithTargetFramework("netcoreapp2.0");
GivenThatWeWantToPublishAHelloWorldProject.cs (7)
35.WithTargetFramework(targetFramework); 85.WithTargetFramework(targetFramework); 532.WithTargetFramework(ToolsetInfo.CurrentTargetFramework); 553.WithTargetFramework(ToolsetInfo.CurrentTargetFramework) 584.WithTargetFramework(tfm) 667.WithTargetFramework(ToolsetInfo.CurrentTargetFramework) 703.WithTargetFramework("netcoreapp2.1");
GivenThatWeWantToRunILLink.cs (1)
259.WithTargetFramework(targetFramework);
Microsoft.NET.TestFramework (1)
TestAsset.cs (1)
226return WithTargetFramework(targetFrameworkOrFrameworks, projectName);
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProject.cs (1)
316.WithTargetFramework($"{ToolsetInfo.CurrentTargetFramework}-windows");