Uno.WindowsCommunityToolkit/Directory.Build.targets

45 строки
2.0 KiB
Plaintext
Исходник Обычный вид История

2017-08-27 06:24:03 +03:00
<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 -->
2021-07-29 23:26:23 +03:00
<UseWinUI Condition="($(TargetFramework.StartsWith('net5.0-windows10')) or '$(TargetFramework)' == 'net461') and '$(MSBuildProjectName)' != 'CommunityToolkit.WinUI.Notifications'">true</UseWinUI>
<UseWinUI Condition="'$(UseWinUI)' == ''">false</UseWinUI>
</PropertyGroup>
2017-08-27 06:24:03 +03:00
2020-05-29 21:30:03 +03:00
<Choose>
<!-- We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects -->
2021-07-29 23:26:23 +03:00
<When Condition="!($(TargetFramework.StartsWith('uap10.0')) or '$(TargetFramework)' == 'native' or $(IsSampleProject)) or '$(MSBuildProjectName)' == 'CommunityToolkit.WinUI.Notifications'">
2020-05-29 21:30:03 +03:00
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</When>
</Choose>
2021-07-29 23:26:23 +03:00
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.WinUI.Build.targets" Condition="$(UseWinUI)" />
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Workarounds.Xaml.targets" Condition="$(IsCoreProject)" />
2018-06-07 23:49:46 +03:00
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
2018-06-07 23:47:39 +03:00
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''">
2018-06-07 23:47:39 +03:00
<_Parameter1>CommitHash</_Parameter1>
<_Parameter2>$(SourceRevisionId)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>
2021-03-10 22:11:38 +03:00
<!-- BEGIN Uno Specific -->
<ItemGroup Condition="'$(UnoUIVersionOverride)'!=''">
<!-- Force all projects to use the same uno version to avoid net5 build issues on linux -->
2023-06-12 03:09:48 +03:00
<PackageReference
Update="Uno.WinUI"
2023-10-18 16:16:44 +03:00
Version="5.0.0-dev.3538" />
2021-03-10 22:11:38 +03:00
</ItemGroup>
<!-- END Uno Specific -->
2023-07-31 07:11:36 +03:00
</Project>