forked from Kinnara/ModernWpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
36 lines (34 loc) · 2.45 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project>
<PropertyGroup Condition="'$(PackageId)' != ''">
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Kinnara/ModernWpf</PackageProjectUrl>
<PackageTags>WPF XAML UI Theme Controls Fluent Modern Metro WinUI</PackageTags>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '4.6.1')) or
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<DefineConstants>$(DefineConstants);NET461_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '4.6.2')) or
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<DefineConstants>$(DefineConstants);NET462_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '4.7')) or
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<DefineConstants>$(DefineConstants);NET47_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '4.7.2')) or
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<DefineConstants>$(DefineConstants);NET472_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '4.8')) or
'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<DefineConstants>$(DefineConstants);NET48_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '5.0'))">
<DefineConstants>$(DefineConstants);NET5_0_OR_NEWER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(SupportedOSPlatform)' != '' and $([MSBuild]::VersionGreaterThan($(SupportedOSPlatform), '7.0'))">
<SupportedOSPlatform>7.0</SupportedOSPlatform>
</PropertyGroup>
</Project>