diff --git a/src/Components/Blazor/Templates/src/SetPackageProperties.targets b/src/Components/Blazor/Templates/src/SetPackageProperties.targets index 099f02d930..0a6c6dd5ba 100644 --- a/src/Components/Blazor/Templates/src/SetPackageProperties.targets +++ b/src/Components/Blazor/Templates/src/SetPackageProperties.targets @@ -11,15 +11,11 @@ - true - false - - IncludeCustomRestoreSources=$(IncludeCustomRestoreSourcesValue); TemplateBlazorVersion=$(PackageVersion); TemplateComponentsVersion=$(ComponentsPackageVersion); RepositoryCommit=$(SourceRevisionId); diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/.template.config.src/template.json b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/.template.config.src/template.json index 4280a01cd3..ce03ef23cb 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/.template.config.src/template.json +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/.template.config.src/template.json @@ -71,12 +71,6 @@ "type": "bind", "binding": "HostIdentifier" }, - "IncludeCustomRestoreSourcesSymbol": { - "type": "parameter", - "datatype": "bool", - "description": "If set, includes restore sources for the Blazor MyGet feed.", - "defaultValue": "${IncludeCustomRestoreSources}" - }, "TemplateBlazorVersionSymbol": { "type": "parameter", "datatype": "string", diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/App.razor b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/App.razor index 80fb778674..eb5c93b6de 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/App.razor +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/App.razor @@ -1 +1,5 @@ - + + +

Sorry, there's nothing at this address.

+
+
diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/BlazorHosted-CSharp.Client.csproj b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/BlazorHosted-CSharp.Client.csproj index 11d1b18664..8a62cd5262 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/BlazorHosted-CSharp.Client.csproj +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Client/BlazorHosted-CSharp.Client.csproj @@ -3,10 +3,6 @@ netstandard2.0 Exe - - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/blazor-dev/api/v3/index.json; - 7.3 3.0 diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/BlazorHosted-CSharp.Server.csproj b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/BlazorHosted-CSharp.Server.csproj index 05506ff5f1..2dbf5e6503 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/BlazorHosted-CSharp.Server.csproj +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/BlazorHosted-CSharp.Server.csproj @@ -2,10 +2,6 @@ netcoreapp3.0 - - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/blazor-dev/api/v3/index.json; - 7.3 diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Startup.cs b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Startup.cs index acb05b6294..e3ee94335d 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Startup.cs +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Startup.cs @@ -33,7 +33,7 @@ namespace BlazorHosted_CSharp.Server app.UseBlazorDebugging(); } - app.UseBlazorClientSideFiles(); + app.UseClientSideBlazorFiles(); app.UseRouting(); diff --git a/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/.template.config.src/template.json b/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/.template.config.src/template.json index 2ac9ba33fc..b9e4e7fefd 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/.template.config.src/template.json +++ b/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/.template.config.src/template.json @@ -43,12 +43,6 @@ "type": "bind", "binding": "HostIdentifier" }, - "IncludeCustomRestoreSourcesSymbol": { - "type": "parameter", - "datatype": "bool", - "description": "If set, includes restore sources for the Blazor MyGet feed.", - "defaultValue": "${IncludeCustomRestoreSources}" - }, "TemplateBlazorVersionSymbol": { "type": "parameter", "datatype": "string", diff --git a/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/BlazorLibrary-CSharp.csproj b/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/BlazorLibrary-CSharp.csproj index 64c24048eb..7029d8a240 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/BlazorLibrary-CSharp.csproj +++ b/src/Components/Blazor/Templates/src/content/BlazorLibrary-CSharp/BlazorLibrary-CSharp.csproj @@ -3,10 +3,6 @@ netstandard2.0 true - - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/blazor-dev/api/v3/index.json; - 7.3 3.0 true diff --git a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/.template.config.src/template.json b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/.template.config.src/template.json index 152ae077ff..0c40ba1f4c 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/.template.config.src/template.json +++ b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/.template.config.src/template.json @@ -44,12 +44,6 @@ "type": "bind", "binding": "HostIdentifier" }, - "IncludeCustomRestoreSourcesSymbol": { - "type": "parameter", - "datatype": "bool", - "description": "If set, includes restore sources for the Blazor MyGet feed.", - "defaultValue": "${IncludeCustomRestoreSources}" - }, "TemplateBlazorVersionSymbol": { "type": "parameter", "datatype": "string", diff --git a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/App.razor b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/App.razor index 80fb778674..eb5c93b6de 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/App.razor +++ b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/App.razor @@ -1 +1,5 @@ - + + +

Sorry, there's nothing at this address.

+
+
diff --git a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/BlazorStandalone-CSharp.csproj b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/BlazorStandalone-CSharp.csproj index 548c55c785..a04cb61258 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/BlazorStandalone-CSharp.csproj +++ b/src/Components/Blazor/Templates/src/content/BlazorStandalone-CSharp/BlazorStandalone-CSharp.csproj @@ -2,10 +2,6 @@ netstandard2.0 - - https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json; - https://dotnet.myget.org/F/blazor-dev/api/v3/index.json; - 7.3 3.0 diff --git a/src/Components/Blazor/Templates/src/content/Directory.Build.props b/src/Components/Blazor/Templates/src/content/Directory.Build.props index 3b45f74eaf..0b2b1789a4 100644 --- a/src/Components/Blazor/Templates/src/content/Directory.Build.props +++ b/src/Components/Blazor/Templates/src/content/Directory.Build.props @@ -2,8 +2,4 @@ - - - true - diff --git a/src/ProjectTemplates/Web.ProjectTemplates/RazorComponentsWeb-CSharp.csproj.in b/src/ProjectTemplates/Web.ProjectTemplates/RazorComponentsWeb-CSharp.csproj.in index 5218e835bd..af7dedfc74 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/RazorComponentsWeb-CSharp.csproj.in +++ b/src/ProjectTemplates/Web.ProjectTemplates/RazorComponentsWeb-CSharp.csproj.in @@ -10,7 +10,7 @@ RazorComponentsWeb_CSharp
- + diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/.template.config/template.json index 106e9fcc39..f9ff4be675 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/.template.config/template.json +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/.template.config/template.json @@ -67,8 +67,65 @@ }, { "condition": "(NoAuth)", + "rename": { + "Shared/MainLayout.NoAuth.razor": "Shared/MainLayout.razor" + }, "exclude": [ - "Shared/LoginDisplay.razor" + "Shared/LoginDisplay.*.razor", + "Shared/MainLayout.Auth.razor" + ] + }, + { + "condition": "(!NoAuth)", + "rename": { + "Shared/MainLayout.Auth.razor": "Shared/MainLayout.razor" + }, + "exclude": [ + "Shared/MainLayout.NoAuth.razor" + ] + }, + { + "condition": "(IndividualLocalAuth)", + "rename": { + "Shared/LoginDisplay.IndividualLocalAuth.razor": "Shared/LoginDisplay.razor" + }, + "exclude": [ + "Shared/LoginDisplay.IndividualB2CAuth.razor", + "Shared/LoginDisplay.OrganizationalAuth.razor", + "Shared/LoginDisplay.WindowsAuth.razor" + ] + }, + { + "condition": "(IndividualB2CAuth)", + "rename": { + "Shared/LoginDisplay.IndividualB2CAuth.razor": "Shared/LoginDisplay.razor" + }, + "exclude": [ + "Shared/LoginDisplay.IndividualLocalAuth.razor", + "Shared/LoginDisplay.OrganizationalAuth.razor", + "Shared/LoginDisplay.WindowsAuth.razor" + ] + }, + { + "condition": "(OrganizationalAuth)", + "rename": { + "Shared/LoginDisplay.OrganizationalAuth.razor": "Shared/LoginDisplay.razor" + }, + "exclude": [ + "Shared/LoginDisplay.IndividualLocalAuth.razor", + "Shared/LoginDisplay.IndividualB2CAuth.razor", + "Shared/LoginDisplay.WindowsAuth.razor" + ] + }, + { + "condition": "(WindowsAuth)", + "rename": { + "Shared/LoginDisplay.WindowsAuth.razor": "Shared/LoginDisplay.razor" + }, + "exclude": [ + "Shared/LoginDisplay.IndividualLocalAuth.razor", + "Shared/LoginDisplay.IndividualB2CAuth.razor", + "Shared/LoginDisplay.OrganizationalAuth.razor" ] } ] diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/App.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/App.razor index 844a2b2455..b913345932 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/App.razor +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/App.razor @@ -1,7 +1,6 @@  -

Page not found

Sorry, there's nothing at this address.

diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Properties/launchSettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Properties/launchSettings.json index da64102e27..acecc7cdb9 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Properties/launchSettings.json +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Properties/launchSettings.json @@ -1,7 +1,12 @@ { "iisSettings": { + //#if (WindowsAuth) + "windowsAuthentication": true, + "anonymousAuthentication": false, + //#else "windowsAuthentication": false, "anonymousAuthentication": true, + //#endif "iisExpress": { "applicationUrl": "http://localhost:8080", //#if(RequiresHttps) diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualB2CAuth.razor similarity index 51% rename from src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.razor rename to src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualB2CAuth.razor index daa24cbb86..d971d6206e 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.razor +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualB2CAuth.razor @@ -1,15 +1,3 @@ -@*#if (IndividualLocalAuth) - - - Hello, @context.User.Identity.Name! - Log out - - - Register - Log in - - -#elseif (IndividualB2CAuth) @using Microsoft.AspNetCore.Authentication.AzureADB2C.UI @using Microsoft.Extensions.Options @inject IOptionsMonitor AzureADB2COptions @@ -40,18 +28,3 @@ canEditProfile = !string.IsNullOrEmpty(options.EditProfilePolicyId); } } -#elseif (OrganizationalAuth) - - - Hello, @context.User.Identity.Name! - Log out - - - Log in - - -#elseif (WindowsAuth) - - Hello, @context.User.Identity.Name! - -#endif*@ diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualLocalAuth.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualLocalAuth.razor new file mode 100644 index 0000000000..efe5d380ee --- /dev/null +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.IndividualLocalAuth.razor @@ -0,0 +1,10 @@ + + + Hello, @context.User.Identity.Name! + Log out + + + Register + Log in + + diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.OrganizationalAuth.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.OrganizationalAuth.razor new file mode 100644 index 0000000000..fd7d5a95e7 --- /dev/null +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.OrganizationalAuth.razor @@ -0,0 +1,9 @@ + + + Hello, @context.User.Identity.Name! + Log out + + + Log in + + diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.WindowsAuth.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.WindowsAuth.razor new file mode 100644 index 0000000000..77d7fb78f2 --- /dev/null +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/LoginDisplay.WindowsAuth.razor @@ -0,0 +1,3 @@ + + Hello, @context.User.Identity.Name! + diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.Auth.razor similarity index 92% rename from src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.razor rename to src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.Auth.razor index e2c2d6500e..68cb863785 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.razor +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.Auth.razor @@ -6,9 +6,7 @@
-@*#if (!NoAuth) -#endif*@ About
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.NoAuth.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.NoAuth.razor new file mode 100644 index 0000000000..9b5407d03b --- /dev/null +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Shared/MainLayout.NoAuth.razor @@ -0,0 +1,15 @@ +@inherits LayoutComponentBase + + + +
+
+ About +
+ +
+ @Body +
+