Skip to content

Commit 9de44e8

Browse files
authored
Update the hardcoded tfm to the current (#45720)
2 parents 39da6dd + faa291c commit 9de44e8

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/VanillaWasmTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class VanillaWasmTests(ITestOutputHelper log) : BlazorWasmBaselineTests(l
1111
public void Build_Works()
1212
{
1313
var testAsset = "VanillaWasm";
14-
var targetFramework = "net9.0";
14+
var targetFramework = ToolsetInfo.CurrentTargetFramework;
1515
var testInstance = CreateAspNetSdkTestAsset(testAsset)
1616
.WithProjectChanges((p, doc) =>
1717
{

test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/Existing/Project1/Project1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

test/TestAssets/TestPackages/dotnet-new/test_templates/PostActions/AddProjectReference/ExistingWithRename/Project1/Project1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

test/TestAssets/TestProjects/ProjectWithEsProjReference/App.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.WebAssembly">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
</PropertyGroup>
66
</Project>

test/TestAssets/TestProjects/WatchAspire/WatchAspire.ServiceDefaults/WatchAspire.ServiceDefaults.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<IsAspireSharedProject>true</IsAspireSharedProject>
77
</PropertyGroup>

test/TestAssets/TestProjects/WatchRazorWithDeps/RazorApp/RazorApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

test/dotnet-watch.Tests/HotReload/ApplyDeltaTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public async Task BlazorWasm_MSBuildWarning()
384384
await App.AssertWaitingForChanges();
385385
}
386386

387-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/45299")]
387+
[Fact]
388388
public async Task Razor_Component_ScopedCssAndStaticAssets()
389389
{
390390
var testAsset = TestAssets.CopyTestAsset("WatchRazorWithDeps")
@@ -619,7 +619,7 @@ public static void PrintDirectoryName([CallerFilePathAttribute] string filePath
619619
await App.AssertOutputLineStartsWith("> NewSubdir");
620620
}
621621

622-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
622+
[Fact]
623623
public async Task Aspire()
624624
{
625625
var tfm = ToolsetInfo.CurrentTargetFramework;

0 commit comments

Comments
 (0)