GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Uno.WindowsCommunityToolkit/Directory.Build.targets at uno · unoplatform/Uno.WindowsCommunityToolkit

Expand file tree

/

Directory.Build.targets

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
55 lines (45 loc) · 2.62 KB
/

Directory.Build.targets

Copy path

File metadata and controls

55 lines (45 loc) · 2.62 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<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 -->
<UseWinUI Condition="($(TargetFramework.StartsWith('net5.0-windows10')) or '$(TargetFramework)' == 'net461') and '$(MSBuildProjectName)' != 'CommunityToolkit.WinUI.Notifications'">true</UseWinUI>
<UseWinUI Condition="'$(UseWinUI)' == ''">false</UseWinUI>
</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)' == 'CommunityToolkit.WinUI.Notifications'">
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</When>
</Choose>
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.WinUI.Build.targets" Condition="$(UseWinUI)" />
<Import Project="$(BuildToolsDirectory)Windows.Toolkit.Workarounds.Xaml.targets" Condition="$(IsCoreProject)" />
<!-- BEGIN Uno Specific -->
<PropertyGroup Condition="$(IsWinUIProject) and $(IsPackable)">
<Description>$(Description.TrimEnd())
WinUI (WinAppSDK) is not supported by this package, reference the official CommunityToolkit.WinUI packages instead.
</Description>
</PropertyGroup>
<!--
Uno.Sdk implies the 'skia' feature and injects the renderer add-ins it brings. The renderer is the app's
choice and the libraries use none of them, so drop them. Marking them private is not enough: the XAML
generator would still chain the generated GlobalStaticResources into every add-in it is compiled against,
and an app without that add-in would fail to load it.
-->
<Target Name="_ToolkitRemoveRendererPackages" AfterTargets="UnoImplicitPackages" Condition="'$(IsUnoHead)' != 'true'">
<ItemGroup>
<PackageReference Remove="Uno.WinUI.Composition.Skia;Uno.WinUI.Graphics2DSK" />
</ItemGroup>
</Target>
<!-- END Uno Specific -->
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''">
<_Parameter1>CommitHash</_Parameter1>
<_Parameter2>$(SourceRevisionId)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>
</Project>
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.