2017-08-27 06:24:03 +03:00
<Project>
2020-05-28 06:23:41 +03:00
2021-02-14 11:32:12 +03:00
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Common.targets" />
2020-05-30 17:46:44 +03:00
<PropertyGroup>
2021-02-14 11:32:12 +03:00
<!-- Exclude Notifications project from this since it sets different min versions than what we want for notifications -->
<UseUWP Condition="($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'net461') and '$(MSBuildProjectName)' != 'Microsoft.Toolkit.Uwp.Notifications'">true</UseUWP>
<UseUWP Condition="'$(UseUWP)' == ''">false</UseUWP>
2020-05-30 17:46:44 +03:00
</PropertyGroup>
2017-08-27 06:24:03 +03:00
2020-05-29 21:30:03 +03:00
<Choose>
2021-02-14 11:32:20 +03:00
<!-- We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects -->
2021-02-14 11:32:12 +03:00
<When Condition="!($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'native' or $(IsSampleProject)) or '$(MSBuildProjectName)' == 'Microsoft.Toolkit.Uwp.Notifications'">
2020-05-29 21:30:03 +03:00
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</When>
</Choose>
2021-02-14 11:32:05 +03:00
2021-02-14 11:32:12 +03:00
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.UWP.Build.targets" Condition="$(UseUWP)" />
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Workarounds.Xaml.targets" Condition="$(IsCoreProject)" />
2020-05-30 17:46:44 +03:00
2018-06-07 23:49:46 +03:00
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
2018-06-07 23:47:39 +03:00
<ItemGroup>
2021-02-14 11:32:20 +03:00
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''">
2018-06-07 23:47:39 +03:00
<_Parameter1>CommitHash</_Parameter1>
<_Parameter2>$(SourceRevisionId)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>
2020-05-30 17:46:44 +03:00
2017-08-27 06:24:03 +03:00
</Project>