File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 44 <PropertyGroup >
55 <!-- The .csproj files in this folder do not actually produce .dll's. They are only present to produce .nupkgs and enable Visual Studio support -->
66 <IsProjectReferenceProvider >false</IsProjectReferenceProvider >
7+ <DisableThrowNavigationException >true</DisableThrowNavigationException >
78 </PropertyGroup >
89
910 <Import Project =" TemplateProjects.props" Condition =" !$(IsTestProject) AND '$(IsTestAssetProject)' != 'true'" />
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ public class Program
2020{
2121 public static void Main ( string [ ] args )
2222 {
23- System . AppContext . SetSwitch ( "Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException" , true ) ;
2423 var builder = WebApplication . CreateBuilder ( args ) ;
2524
2625 // Add services to the container.
Original file line number Diff line number Diff line change 1414using BlazorWeb_CSharp . Data ;
1515#endif
1616
17- System . AppContext . SetSwitch ( "Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException" , true ) ;
18-
1917var builder = WebApplication . CreateBuilder ( args ) ;
2018
2119// Add services to the container.
You can’t perform that action at this time.
0 commit comments