Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/BlazorWasmSdk/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ Copyright (c) .NET Foundation. All rights reserved.

<Import Project="$(_BlazorWebAssemblyTargetsFile)" />

<ItemGroup>
<RuntimeHostConfigurationOption Include="Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException"
Condition="'$(BlazorDisableThrowNavigationException)' != ''"
Value="$(BlazorDisableThrowNavigationException)"
Trim="true" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/WebSdk/Web/Targets/Sdk.Server.targets
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Copyright (c) .NET Foundation. All rights reserved.
Condition="'$(MvcEnhancedModelMetadataSupport)' != ''"
Value="$(MvcEnhancedModelMetadataSupport)"
Trim="true" />
<RuntimeHostConfigurationOption Include="Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException"
Condition="'$(BlazorDisableThrowNavigationException)' != ''"
Value="$(BlazorDisableThrowNavigationException)"
Trim="true" />
</ItemGroup>

</Project>
Loading