25 строки
1.3 KiB
XML
25 строки
1.3 KiB
XML
<Project>
|
|
|
|
<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.Contains(`uap10.0`)) and '$(TargetFramework)' != 'native' and '$(IsSampleProject)' != 'true') or $(MSBuildProjectName) == 'CommunityToolkit.WinUI.Notifications'">
|
|
<PropertyGroup>
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
|
|
</PropertyGroup>
|
|
</When>
|
|
</Choose>
|
|
|
|
<!--Exclude Notifications project from this since it sets different min versions than what we want for notifications-->
|
|
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.Uwp.Build.targets" Condition="'$(UseWinUI)' == 'true' and $(MSBuildProjectName) != 'CommunityToolkit.WinUI.Notifications'"/>
|
|
|
|
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
|
<ItemGroup>
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
|
|
<_Parameter1>CommitHash</_Parameter1>
|
|
<_Parameter2>$(SourceRevisionId)</_Parameter2>
|
|
</AssemblyAttribute>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project> |