-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accommodate WinUI 2/3 dependencies per-experiment (#139)
* Added props files for WinUI 2 and WinUI 3 dependencies * Fixed an issue where WinUI version had to be swapped for Uwp or WinAppSdk to get dependencies * Fixed UWP TargetFramework check * Update template/lab/src/Labs.WinUI.Dependencies.props Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]> * Fixed invalid WinAppSdk check * Rename UseWinUI to WinUIMajorVersion * Added note for NS2.0 dependencies * Update labs/CanvasLayout/src/Dependencies.WinUI3.props * Moved lab WinUI dependency data to existing Uno props file Co-authored-by: Michael Hawker MSFT (XAML Llama) <[email protected]>
- Loading branch information
1 parent
5203527
commit aba0670
Showing
11 changed files
with
136 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
labs/CanvasLayout/src/CommunityToolkit.Labs.WinUI.CanvasLayout.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 2 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsUwp)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '2' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 3 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsWinAppSdk)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '3' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |
3 changes: 2 additions & 1 deletion
3
labs/SizerBase/src/CommunityToolkit.Labs.WinUI.SizerBase.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 2 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsUwp)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '2' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 3 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsWinAppSdk)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '3' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |
2 changes: 2 additions & 0 deletions
2
template/lab/src/CommunityToolkit.Labs.WinUI.ProjectTemplate.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 2 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsUwp)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '2' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- | ||
HOW TO USE THIS FILE | ||
WinUI 2 under UWP uses TargetFramework uap10.0.* | ||
WinUI 3 under WinAppSdk uses TargetFramework net6.0-windows10.* | ||
However, under Uno-powered platforms, both WinUI 2 and 3 share the same TargetFramework. | ||
MSBuild doesn't play nicely with this out of the box, so we've made it easy for you. | ||
For .NET Standard packages, you can use the Nuget Package Manager in Visual Studio. | ||
For WinUI 3 / Uno packages, place the package references here. | ||
--> | ||
<Project> | ||
<ItemGroup Condition="'$(IsWinAppSdk)' == 'True'"> | ||
|
||
</ItemGroup> | ||
<ItemGroup Condition="'$(WinUIMajorVersion)' == '3' AND '$(IsUno)' == 'True'"> | ||
|
||
</ItemGroup> | ||
</Project> |