Files
MicrosoftIris/Directory.Build.props
T

55 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<ApplicationVersion>5.0.0.0</ApplicationVersion>
<AssemblyVersion>$(ApplicationVersion)</AssemblyVersion>
<FileVersion>$(ApplicationVersion)</FileVersion>
<LangVersion>latest</LangVersion>
<DefineConstants>$(DefineConstants);OPENZUNE</DefineConstants>
<TargetFrameworks>net8.0</TargetFrameworks>
<Platforms>AnyCPU;x64;x86</Platforms>
<!--<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\36MSApp1024.snk</AssemblyOriginatorKeyFile>
<DelaySign>True</DelaySign>-->
</PropertyGroup>
<PropertyGroup Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">
<TargetFrameworks>$(TargetFrameworks);net8.0-windows10.0.22000</TargetFrameworks>
<TargetFrameworks Condition=" $(EnableNetFXTarget) == 'true' ">$(TargetFrameworks);net461;</TargetFrameworks>
</PropertyGroup>
<Choose>
<When Condition=" $([MSBuild]::GetTargetPlatformIdentifier($(TargetFramework))) == 'windows' ">
<PropertyGroup>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<TargetWindowsVersion>$([MSBuild]::GetTargetPlatformVersion($(TargetFramework)))</TargetWindowsVersion>
<DefineConstants Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetWindowsVersion), '7.0'))">
$(DefineConstants);WINDOWS7
</DefineConstants>
<DefineConstants Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetWindowsVersion), '8.0'))">
$(DefineConstants);WINDOWS8
</DefineConstants>
<DefineConstants Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetWindowsVersion), '10.0'))">
$(DefineConstants);WINDOWS10
</DefineConstants>
</PropertyGroup>
</When>
<When Condition=" $(TargetFramework.StartsWith('net4')) ">
<PropertyGroup>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<DefineConstants Condition=" !$(TargetFramework.StartsWith('net40')) ">
$(DefineConstants);NETSTANDARD1_0_OR_GREATER;NETSTANDARD2_0_OR_GREATER
</DefineConstants>
</PropertyGroup>
</When>
</Choose>
</Project>