<!--
***********************************************************************************************
Sdk.props

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)' == ''" />
  
  <!-- PVS-Studio: Before .NET 6: -->  
  <PropertyGroup Condition="'$(PVSBuildTools_NETCoreSdkMajorVersion)' != '' and '$(PVSBuildTools_NETCoreSdkMajorVersion)' &lt; '6'">
    <_ILLinkTasksDirectoryRoot Condition=" '$(_ILLinkTasksDirectoryRoot)' == '' ">$(PVSBuildTools_NetILLinkTasks)/tools/</_ILLinkTasksDirectoryRoot>
    <_ILLinkTasksTFM Condition=" '$(MSBuildRuntimeType)' == 'Core' ">netcoreapp3.0</_ILLinkTasksTFM>
    <_ILLinkTasksTFM Condition=" '$(_ILLinkTasksTFM)' == '' ">net472</_ILLinkTasksTFM>
    <_ILLinkTasksDirectory>$(_ILLinkTasksDirectoryRoot)$(_ILLinkTasksTFM)/</_ILLinkTasksDirectory>
    <ILLinkTasksAssembly Condition=" '$(ILLinkTasksAssembly)' == '' ">$(_ILLinkTasksDirectory)ILLink.Tasks.dll</ILLinkTasksAssembly>
  </PropertyGroup>

  <UsingTask Condition="'$(PVSBuildTools_NETCoreSdkMajorVersion)' != '' and '$(PVSBuildTools_NETCoreSdkMajorVersion)' &lt; '6'" TaskName="ILLink.Tasks.ILLink" AssemblyFile="$(ILLinkTasksAssembly)" />
  <UsingTask Condition="'$(PVSBuildTools_NETCoreSdkMajorVersion)' != '' and '$(PVSBuildTools_NETCoreSdkMajorVersion)' &lt; '6'" TaskName="ILLink.Tasks.ComputeManagedAssemblies" AssemblyFile="$(ILLinkTasksAssembly)" />

  <!-- PVS-Studio: .NET 6: -->
  <Import Project="$(PVSBuildTools_NetILLinkTasks)\build\Microsoft.NET.ILLink.Tasks.props" Condition="    '$(PVSBuildTools_NETCoreSdkMajorVersion)' != ''
                                                                                                      and '$(PVSBuildTools_NETCoreSdkMajorVersion)' == '6'
                                                                                                      and '$(UsingILLinkTasksSdk)' != 'true'" />
																									  
  <!-- PVS-Studio: .NET 7+: -->
  <Import Project="$(PVSBuildTools_NetILLinkTasks)\build\Microsoft.NET.ILLink.Tasks.props" Condition="    '$(PVSBuildTools_NETCoreSdkMajorVersion)' != ''
                                                                                                      and '$(PVSBuildTools_NETCoreSdkMajorVersion)' &gt;= '7'
                                                                                                      and '$(ILLinkTargetsPath)' == ''" />

</Project>
