File tree Expand file tree Collapse file tree 9 files changed +53
-32
lines changed Expand file tree Collapse file tree 9 files changed +53
-32
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ function ApplyWinUISwap([string] $filePath) {
27
27
if ($winUIMajorVersion -eq " 3" ) {
28
28
$fileContents = $fileContents -replace ' <WinUIMajorVersion>2</WinUIMajorVersion>' , ' <WinUIMajorVersion>3</WinUIMajorVersion>' ;
29
29
$fileContents = $fileContents -replace ' <PackageIdVariant>Uwp</PackageIdVariant>' , ' <PackageIdVariant>WinUI</PackageIdVariant>' ;
30
+ $fileContents = $fileContents -replace ' <DependencyVariant>Uwp</DependencyVariant>' , ' <DependencyVariant>WinUI</DependencyVariant>' ;
30
31
$fileContents = $fileContents -replace ' Uno.UI' , ' Uno.WinUI' ;
31
32
}
32
33
33
34
if ($winUIMajorVersion -eq " 2" ) {
34
35
$fileContents = $fileContents -replace ' <WinUIMajorVersion>3</WinUIMajorVersion>' , ' <WinUIMajorVersion>2</WinUIMajorVersion>' ;
35
36
$fileContents = $fileContents -replace ' <PackageIdVariant>WinUI</PackageIdVariant>' , ' <PackageIdVariant>Uwp</PackageIdVariant>' ;
37
+ $fileContents = $fileContents -replace ' <DependencyVariant>WinUI</DependencyVariant>' , ' <DependencyVariant>Uwp</DependencyVariant>' ;
36
38
$fileContents = $fileContents -replace ' Uno.WinUI' , ' Uno.UI' ;
37
39
}
38
40
Original file line number Diff line number Diff line change 1
1
<!-- Nuget package dependencies for all deployable Uno project heads that use WinUI 2 -->
2
2
<!-- Due to the quirks of non-sdk style projects, we cannot create a unified Dependencies.props for deployable head. -->
3
3
<Project >
4
- <ItemGroup >
5
- <!-- <PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.Markdown" Version="7.1.11" />-->
6
- <PackageReference Include =" Uno.Microsoft.Xaml.Behaviors.Uwp.Managed" Version =" 2.3.1-uno.2" />
7
- <PackageReference Include =" CommunityToolkit.Uwp.Converters" Version =" 8.0.0-beta.1" />
8
- </ItemGroup >
4
+ <ItemGroup >
5
+ <!-- <PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.Markdown" Version="7.1.11" />-->
6
+ <PackageReference Include =" Uno.Microsoft.Xaml.Behaviors.Uwp.Managed" Version =" 2.3.1-uno.2" />
7
+ </ItemGroup >
9
8
</Project >
10
9
11
10
Original file line number Diff line number Diff line change 1
1
<!-- Nuget package dependencies for all deployable Uno project heads that use WinUI 3 -->
2
2
<!-- Due to the quirks of non-sdk style projects, we cannot create a unified Dependencies.props for deployable head. -->
3
3
<Project >
4
- <ItemGroup >
5
- <!-- <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.100-dev.15.g12261e2626" />-->
6
- <PackageReference Include =" Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version =" 2.3.1-uno.2" />
7
- <PackageReference Include =" CommunityToolkit.WinUI.Converters" Version =" 8.0.0-beta.1" />
8
- </ItemGroup >
4
+ <ItemGroup >
5
+ <!-- <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.100-dev.15.g12261e2626" />-->
6
+ <PackageReference Include =" Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version =" 2.3.1-uno.2" />
7
+ </ItemGroup >
9
8
</Project >
Original file line number Diff line number Diff line change 1
1
<Project >
2
- < Import Project = " $(MSBuildThisFileDirectory)\App.Head.props " / >
3
- <Import Project = " $(MSBuildThisFileDirectory)\..\MultiTarget\PackageReferences\Uno.props " / >
4
- < Import Project = " $(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props " / >
2
+ < PropertyGroup >
3
+ <DependencyVariant >Uwp</ DependencyVariant >
4
+ </ PropertyGroup >
5
5
6
- <!--
7
- Import Uno dependencies for all deployable Uno-based Labs project heads.
8
- This import must be inside THIS file to allow swapping between Uno.UI and Uno.WinUI via pwsh.
9
- Changes to this file are suppressed by git when switching to avoid changing the default for all users.
10
- -->
11
- <Import Project =" $(MSBuildThisFileDirectory)\App.Head.Uno.UI.Dependencies.props" />
6
+ <Import Project =" $(MSBuildThisFileDirectory)\App.Head.props" />
7
+ <Import Project =" $(MSBuildThisFileDirectory)\..\MultiTarget\PackageReferences\Uno.props" />
8
+ <Import Project =" $(MSBuildThisFileDirectory)\..\MultiTarget\WinUI.Extra.props" />
9
+
10
+ <!--
11
+ Import Uno dependencies for all deployable Uno-based Labs project heads.
12
+ This import must be inside THIS file to allow swapping between Uno.UI and Uno.WinUI via pwsh.
13
+ Changes to this file are suppressed by git when switching to avoid changing the default for all users.
14
+ -->
15
+ <Import Project =" $(MSBuildThisFileDirectory)\App.Head.Uno.UI.Dependencies.props" />
12
16
</Project >
Original file line number Diff line number Diff line change 1
1
<!-- Nuget package dependencies for all deployable UWP project heads -->
2
2
<!-- Due to the quirks of non-sdk style projects, we cannot create a unified Dependencies.props for deployable head. -->
3
3
<Project >
4
- <ItemGroup >
5
- <PackageReference Include =" Microsoft.Toolkit.Uwp.UI.Controls.Markdown" Version =" 7.1.2" />
6
- <PackageReference Include =" Microsoft.Xaml.Behaviors.Uwp.Managed" Version =" 2.0.1" />
7
- <PackageReference Include =" System.Collections.Immutable" Version =" 5.0.0" />
8
- <PackageReference Include =" CommunityToolkit.Uwp.Converters" Version =" 8.0.0-beta.1" />
9
- </ItemGroup >
4
+ <ItemGroup >
5
+ <PackageReference Include =" Microsoft.Toolkit.Uwp.UI.Controls.Markdown" Version =" 7.1.2" />
6
+ <PackageReference Include =" Microsoft.Xaml.Behaviors.Uwp.Managed" Version =" 2.0.1" />
7
+ <PackageReference Include =" System.Collections.Immutable" Version =" 5.0.0" />
8
+ </ItemGroup >
10
9
</Project >
Original file line number Diff line number Diff line change 3
3
4
4
<PropertyGroup >
5
5
<TargetFramework >$(UwpTargetFramework)</TargetFramework >
6
+ <DependencyVariant >Uwp</DependencyVariant >
6
7
</PropertyGroup >
7
8
8
- <Import Project =" $(MSBuildThisFileDirectory)\App.Head.Uwp.Dependencies.props" />
9
9
<Import Project =" $(MSBuildThisFileDirectory)\App.Head.props" />
10
10
<Import Project =" $(MSBuildThisFileDirectory)\Head.Uwp.props" />
11
+ <Import Project =" $(MSBuildThisFileDirectory)\App.Head.Uwp.Dependencies.props" />
11
12
</Project >
Original file line number Diff line number Diff line change 1
1
<!-- Nuget package dependencies for all deployable UWP project heads -->
2
2
<!-- Due to the quirks of non-sdk style projects, we cannot create a unified Dependencies.props for deployable head. -->
3
3
<Project >
4
- <ItemGroup >
5
- <PackageReference Include =" CommunityToolkit.WinUI.UI.Controls.Markdown" Version =" 7.1.2" />
6
- <PackageReference Include =" Microsoft.Xaml.Behaviors.WinUI.Managed" Version =" 2.0.9" />
7
- <PackageReference Include =" CommunityToolkit.WinUI.Converters" Version =" 8.0.0-beta.1" />
8
- </ItemGroup >
4
+ <ItemGroup >
5
+ <PackageReference Include =" CommunityToolkit.WinUI.UI.Controls.Markdown" Version =" 7.1.2" />
6
+ <PackageReference Include =" Microsoft.Xaml.Behaviors.WinUI.Managed" Version =" 2.0.9" />
7
+ </ItemGroup >
9
8
</Project >
Original file line number Diff line number Diff line change 1
1
<Project >
2
+ <PropertyGroup >
3
+ <DependencyVariant >WinUI</DependencyVariant >
4
+ </PropertyGroup >
5
+
2
6
<Import Project =" $(MSBuildThisFileDirectory)\App.Head.props" />
3
7
<Import Project =" $(MSBuildThisFileDirectory)\Head.WinAppSdk.props" />
4
8
<Import Project =" $(MSBuildThisFileDirectory)\App.Head.WinAppSdk.Dependencies.props" />
Original file line number Diff line number Diff line change 22
22
<SlnGenIsDeployable >true</SlnGenIsDeployable >
23
23
</PropertyGroup >
24
24
25
+ <!-- Sample App Toolkit Dependencies -->
26
+ <Choose >
27
+ <When Condition =" '$(ToolkitConvertersSourceProject)' == ''" >
28
+ <ItemGroup >
29
+ <PackageReference Include =" CommunityToolkit.$(DependencyVariant).Converters" Version =" 8.0.0-beta.1" />
30
+ </ItemGroup >
31
+ </When >
32
+ <Otherwise >
33
+ <ItemGroup >
34
+ <ProjectReference Include =" $(ToolkitConvertersSourceProject)" />
35
+ </ItemGroup >
36
+ </Otherwise >
37
+ </Choose >
38
+
25
39
<!-- See https://github.com/CommunityToolkit/Labs-Windows/issues/142 -->
26
40
<ItemGroup Condition =" '$(IsAllExperimentHead)' == 'true'" >
27
41
<!-- These are also included in the Samples props file, but added here to workaround https://github.com/unoplatform/uno/issues/2502 -->
50
64
<ItemGroup Condition =" '$(IsSingleExperimentHead)' == 'true' or '$(IsProjectTemplateHead)' == 'true'" >
51
65
<!-- These are also included in the Samples props file, but added here to workaround https://github.com/unoplatform/uno/issues/2502 -->
52
66
<Content Include =" $(MSBuildProjectDirectory)\..\..\samples\**\*.md" Exclude =" $(MSBuildProjectDirectory)\..\..\samples\obj\**\*.md;$(MSBuildProjectDirectory)\..\..\samples\bin\**\*.md;$(MSBuildProjectDirectory)\..\..\**\SourceAssets\**\*.md" Link =" SourceAssets/%(RecursiveDir)%(FileName)%(Extension)" />
53
- <Content Include =" $(MSBuildProjectDirectory)\..\..\samples\**\*.png" Exclude =" $(MSBuildProjectDirectory)\..\..\samples\obj\**\*.png;$(MSBuildProjectDirectory)\..\..\samples\bin\**\*.png;$(MSBuildProjectDirectory)\..\..\**\SourceAssets\**\*.png" Link =" SourceAssets/%(RecursiveDir)%(FileName)%(Extension)" />
67
+ <Content Include =" $(MSBuildProjectDirectory)\..\..\samples\**\*.png" Exclude =" $(MSBuildProjectDirectory)\..\..\samples\obj\**\*.png;$(MSBuildProjectDirectory)\..\..\samples\bin\**\*.png;$(MSBuildProjectDirectory)\..\..\**\SourceAssets\**\*.png" Link =" SourceAssets/%(RecursiveDir)%(FileName)%(Extension)" />
54
68
<Content Include =" $(MSBuildProjectDirectory)\..\..\samples\**\*.xaml" Exclude =" $(MSBuildProjectDirectory)\..\..\samples\obj\**\*.xaml;$(MSBuildProjectDirectory)\..\..\samples\bin\**\*.xaml;$(MSBuildProjectDirectory)\..\..\**\SourceAssets\**\*.xaml" Link =" SourceAssets/%(RecursiveDir)%(FileName)%(Extension)" />
55
69
56
70
<!-- Link/.dat is a workaround for https://github.com/unoplatform/uno/issues/8649 -->
You can’t perform that action at this time.
0 commit comments