|
9 | 9 |
|
10 | 10 | <IsPackable>false</IsPackable> |
11 | 11 | <RootNamespace>CommunityToolkit.App.Uno</RootNamespace> |
| 12 | + <ImplicitUsings>enable</ImplicitUsings> |
12 | 13 |
|
13 | 14 | <!-- Platform flags for Generated/*.props project reference conditions --> |
14 | 15 | <IsDeployableHead>true</IsDeployableHead> |
|
19 | 20 | <IsAllExperimentHead>true</IsAllExperimentHead> |
20 | 21 | <DependencyVariant>WinUI</DependencyVariant> |
21 | 22 |
|
22 | | - <GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
23 | | - <EnableDefaultUnoItems>false</EnableDefaultUnoItems> |
24 | | - <DefineConstants>$(DefineConstants);WINUI3</DefineConstants> |
| 23 | + <DefineConstants>$(DefineConstants);WINUI3;WINAPPSDK</DefineConstants> |
25 | 24 | </PropertyGroup> |
26 | 25 |
|
27 | | - <!-- Required for shared app code global usings and platform constants --> |
28 | | - <Import Project="$(ToolingDirectory)\MultiTarget\DefinedConstants.props" /> |
29 | | - <Import Project="$(ToolingDirectory)\MultiTarget\GlobalUsings.props" /> |
| 26 | + <!-- Global usings for WinUI XAML namespaces --> |
| 27 | + <ItemGroup> |
| 28 | + <Using Include="Microsoft.UI.Xaml" /> |
| 29 | + <Using Include="Microsoft.UI.Xaml.Controls" /> |
| 30 | + <Using Include="Microsoft.UI.Xaml.Controls.Primitives" /> |
| 31 | + <Using Include="Microsoft.UI.Xaml.Data" /> |
| 32 | + <Using Include="Microsoft.UI.Xaml.Input" /> |
| 33 | + <Using Include="Microsoft.UI.Xaml.Markup" /> |
| 34 | + <Using Include="Microsoft.UI.Xaml.Media" /> |
| 35 | + <Using Include="Microsoft.UI.Xaml.Media.Animation" /> |
| 36 | + <Using Include="Microsoft.UI.Xaml.Navigation" /> |
| 37 | + <Using Include="Microsoft.UI.Xaml.Automation" /> |
| 38 | + <Using Include="Microsoft.UI.Xaml.Automation.Peers" /> |
| 39 | + <Using Include="Windows.Foundation" /> |
| 40 | + <Using Include="Windows.Foundation.Collections" /> |
| 41 | + <Using Include="System.Runtime.InteropServices.WindowsRuntime" /> |
| 42 | + <Using Include="Microsoft.UI.Xaml.Controls" Alias="MUXC" /> |
| 43 | + </ItemGroup> |
30 | 44 |
|
31 | 45 | <!-- Auto-generated project references --> |
32 | 46 | <Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.Samples.props" /> |
33 | 47 | <Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.Source.props" /> |
34 | 48 |
|
| 49 | + <!-- For Uno TFMs, force project references to resolve to net9.0 (not windows-specific) --> |
| 50 | + <ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier)' != ''"> |
| 51 | + <ProjectReference Update="..\..\src\*.csproj" SetTargetFramework="TargetFramework=net9.0" /> |
| 52 | + <ProjectReference Update="..\..\samples\*.csproj" SetTargetFramework="TargetFramework=net9.0" /> |
| 53 | + </ItemGroup> |
| 54 | + |
35 | 55 | <!-- Shared app code --> |
36 | 56 | <Import Project="$(ToolingDirectory)\CommunityToolkit.App.Shared\CommunityToolkit.App.Shared.projitems" Label="Shared" /> |
37 | 57 | <Import Project="$(ToolingDirectory)\ProjectHeads\Targets\AddMultiTargetCompatibleSampleDocs.targets" /> |
|
63 | 83 | <!-- Uno app dependencies --> |
64 | 84 | <ItemGroup> |
65 | 85 | <PackageReference Include="Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI" Version="3.0.3" /> |
66 | | - <PackageReference Include="Uno.WinUI.Lottie" Version="6.4.242" /> |
67 | 86 | </ItemGroup> |
68 | 87 |
|
69 | 88 | <!-- Sample doc content inclusion --> |
|
0 commit comments