diff --git a/src/Templates/Microsoft.FluentUI.AspNetCore.Templates.csproj b/src/Templates/Microsoft.FluentUI.AspNetCore.Templates.csproj index 216c5fdb0a..fd40febfc6 100644 --- a/src/Templates/Microsoft.FluentUI.AspNetCore.Templates.csproj +++ b/src/Templates/Microsoft.FluentUI.AspNetCore.Templates.csproj @@ -1,5 +1,4 @@ - net9.0 Microsoft @@ -40,18 +39,18 @@ true $(SolutionDir)artifacts - + false - + - + - + @@ -75,7 +74,7 @@ - + @@ -89,6 +88,7 @@ - - + + diff --git a/src/Templates/templates/aspire-starter/8.2/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor b/src/Templates/templates/aspire-starter/8.2/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor index 939ec46ba2..abcb8cfe44 100644 --- a/src/Templates/templates/aspire-starter/8.2/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor +++ b/src/Templates/templates/aspire-starter/8.2/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor @@ -1,7 +1,6 @@ @page "/weather" -@attribute [StreamRendering(true)] +@rendermode InteractiveServer @attribute [OutputCache(Duration = 5)] - @inject WeatherApiClient WeatherApi Weather diff --git a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.AppHost/Aspire-StarterApplication.1.AppHost.csproj b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.AppHost/Aspire-StarterApplication.1.AppHost.csproj index 9c04e40b19..8dbdab7bf4 100644 --- a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.AppHost/Aspire-StarterApplication.1.AppHost.csproj +++ b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.AppHost/Aspire-StarterApplication.1.AppHost.csproj @@ -1,6 +1,6 @@ - + Exe @@ -17,9 +17,9 @@ - + - + diff --git a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.ServiceDefaults/Aspire-StarterApplication.1.ServiceDefaults.csproj b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.ServiceDefaults/Aspire-StarterApplication.1.ServiceDefaults.csproj index 44c1880265..996f15b2df 100644 --- a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.ServiceDefaults/Aspire-StarterApplication.1.ServiceDefaults.csproj +++ b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.ServiceDefaults/Aspire-StarterApplication.1.ServiceDefaults.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj index d337a33674..1d770f108b 100644 --- a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj +++ b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Tests/Aspire-StarterApplication.1.Tests.csproj @@ -14,7 +14,7 @@ - + diff --git a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Aspire-StarterApplication.1.Web.csproj b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Aspire-StarterApplication.1.Web.csproj index dda391bedd..0b96642947 100644 --- a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Aspire-StarterApplication.1.Web.csproj +++ b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Aspire-StarterApplication.1.Web.csproj @@ -8,13 +8,13 @@ - - + + - + diff --git a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor index 939ec46ba2..8748b28532 100644 --- a/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor +++ b/src/Templates/templates/aspire-starter/9.0/Aspire-StarterApplication.1.Web/Components/Pages/Weather.razor @@ -1,5 +1,5 @@ @page "/weather" -@attribute [StreamRendering(true)] +@rendermode InteractiveServer @attribute [OutputCache(Duration = 5)] @inject WeatherApiClient WeatherApi diff --git a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp.Client/BlazorWeb-CSharp.Client.csproj b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp.Client/BlazorWeb-CSharp.Client.csproj index 5b1cdfc351..72ebafd709 100644 --- a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp.Client/BlazorWeb-CSharp.Client.csproj +++ b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp.Client/BlazorWeb-CSharp.Client.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/BlazorWeb-CSharp.csproj b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/BlazorWeb-CSharp.csproj index 60785353bc..cc6a048cc3 100644 --- a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/BlazorWeb-CSharp.csproj +++ b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/BlazorWeb-CSharp.csproj @@ -35,7 +35,7 @@ - - + + diff --git a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/Components/_Imports.razor b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/Components/_Imports.razor index f4cd51556d..9b3af88964 100644 --- a/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/Components/_Imports.razor +++ b/src/Templates/templates/blazorweb-csharp/BlazorWeb-CSharp/Components/_Imports.razor @@ -14,6 +14,8 @@ @using BlazorWeb_CSharp @*#if (UseWebAssembly) --> @using BlazorWeb_CSharp.Client +##endif*@ +@*#if (UseWebAssembly && SampleContent) --> @using BlazorWeb_CSharp.Client.Layout ##endif*@ @using BlazorWeb_CSharp.Components diff --git a/src/Templates/templates/componentswebassembly-csharp/ComponentsWebAssembly-CSharp.csproj b/src/Templates/templates/componentswebassembly-csharp/ComponentsWebAssembly-CSharp.csproj index eced728e2b..2a7f6c84c2 100644 --- a/src/Templates/templates/componentswebassembly-csharp/ComponentsWebAssembly-CSharp.csproj +++ b/src/Templates/templates/componentswebassembly-csharp/ComponentsWebAssembly-CSharp.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Shared/MauiApp.1.Shared.csproj b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Shared/MauiApp.1.Shared.csproj index d91d0ae2c3..bb40f653d6 100644 --- a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Shared/MauiApp.1.Shared.csproj +++ b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Shared/MauiApp.1.Shared.csproj @@ -12,8 +12,8 @@ - - + + diff --git a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web.Client/MauiApp.1.Web.Client.csproj b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web.Client/MauiApp.1.Web.Client.csproj index e67ffd3e51..a14cb361f4 100644 --- a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web.Client/MauiApp.1.Web.Client.csproj +++ b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web.Client/MauiApp.1.Web.Client.csproj @@ -11,12 +11,12 @@ - - + + - \ No newline at end of file + diff --git a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web/MauiApp.1.Web.csproj b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web/MauiApp.1.Web.csproj index e5fcddc837..f1ed16745c 100644 --- a/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web/MauiApp.1.Web.csproj +++ b/src/Templates/templates/maui-blazor-solution/MauiApp.1.Web/MauiApp.1.Web.csproj @@ -31,8 +31,8 @@ - - + +