34 строки
1.6 KiB
XML
34 строки
1.6 KiB
XML
<Project>
|
|
|
|
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Common.targets" />
|
|
|
|
<PropertyGroup>
|
|
<!-- 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>
|
|
</PropertyGroup>
|
|
|
|
<Choose>
|
|
<!-- We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects -->
|
|
<When Condition="!($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'native' or $(IsSampleProject)) or '$(MSBuildProjectName)' == 'Microsoft.Toolkit.Uwp.Notifications'">
|
|
<PropertyGroup>
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
|
|
</PropertyGroup>
|
|
</When>
|
|
</Choose>
|
|
|
|
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.UWP.Build.targets" Condition="$(UseUWP)" />
|
|
|
|
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Workarounds.Xaml.targets" Condition="$(IsCoreProject)" />
|
|
|
|
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
|
<ItemGroup>
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''">
|
|
<_Parameter1>CommitHash</_Parameter1>
|
|
<_Parameter2>$(SourceRevisionId)</_Parameter2>
|
|
</AssemblyAttribute>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project> |