Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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>
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Default feature switch values for trimmed apps. -->
<SignalRCustomAwaitableSupport Condition="'$(SignalRCustomAwaitableSupport)' == ''">false</SignalRCustomAwaitableSupport>
<MvcEnhancedModelMetadataSupport Condition="'$(MvcEnhancedModelMetadataSupport)' == ''">false</MvcEnhancedModelMetadataSupport>
<BlazorDisableThrowNavigationException Condition="'$(BlazorDisableThrowNavigationException)' == ''">false</BlazorDisableThrowNavigationException>
</PropertyGroup>

<PropertyGroup>
Expand Down
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