<!--
***********************************************************************************************
Sdk.targets

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project ToolsVersion="14.0">
  <Import Project="$(MSBuildThisFileDirectory)\..\..\PVSBuildToolsNETCoreCommon.props" Condition="'$(PVSBuildTools_NETCoreCommonProps)' == ''" />

  <PropertyGroup>
    <_BlazorWebAssemblyTargetsFile Condition="'$(_BlazorWebAssemblyTargetsFile)' == ''">$(PVSBuildTools_BlazorWebAssemblyTargets)\Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets</_BlazorWebAssemblyTargetsFile>
  </PropertyGroup>

  <!-- PVS-Studio: Before .NET 6 or .NET 6: -->
  <ItemGroup Condition="'$(PVSBuildTools_NETCoreSdkMajorVersion)' != '' and '$(PVSBuildTools_NETCoreSdkMajorVersion)' &lt;= '6'">
    <ProjectCapability Include="WebAssembly" />
  </ItemGroup>
  
  <Import Project="$(_BlazorWebAssemblyTargetsFile)" />
  
  <ItemGroup>
    <RuntimeHostConfigurationOption Include="Microsoft.AspNetCore.Components.Endpoints.NavigationManager.DisableThrowNavigationException"
                                    Condition="'$(BlazorDisableThrowNavigationException)' != ''"
                                    Value="$(BlazorDisableThrowNavigationException)"
                                    Trim="true" />
  </ItemGroup>

</Project>
