Skip to content

Commit

Permalink
Update the hardcoded tfm to the current (#45720)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-wuzhai authored Jan 8, 2025
2 parents 39da6dd + faa291c commit 9de44e8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class VanillaWasmTests(ITestOutputHelper log) : BlazorWasmBaselineTests(l
public void Build_Works()
{
var testAsset = "VanillaWasm";
var targetFramework = "net9.0";
var targetFramework = ToolsetInfo.CurrentTargetFramework;
var testInstance = CreateAspNetSdkTestAsset(testAsset)
.WithProjectChanges((p, doc) =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WebAssembly">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<IsAspireSharedProject>true</IsAspireSharedProject>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions test/dotnet-watch.Tests/HotReload/ApplyDeltaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public async Task BlazorWasm_MSBuildWarning()
await App.AssertWaitingForChanges();
}

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

[Fact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
[Fact]
public async Task Aspire()
{
var tfm = ToolsetInfo.CurrentTargetFramework;
Expand Down

0 comments on commit 9de44e8

Please sign in to comment.