Skip to content

Commit 13b4ee2

Browse files
committed
Undo change
1 parent 5dbe671 commit 13b4ee2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

MultiTarget/UseUnoWinUI.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ function ApplyWinUISwap([string] $filePath) {
1111
$fileContents = $fileContents -replace '<WinUIMajorVersion>2</WinUIMajorVersion>', '<WinUIMajorVersion>3</WinUIMajorVersion>';
1212
$fileContents = $fileContents -replace '<PackageIdVariant>Uwp</PackageIdVariant>', '<PackageIdVariant>WinUI</PackageIdVariant>';
1313
$fileContents = $fileContents -replace '<DependencyVariant>Uwp</DependencyVariant>', '<DependencyVariant>WinUI</DependencyVariant>';
14+
$fileContents = $fileContents -replace 'Uno.UI', 'Uno.WinUI';
1415
}
1516

1617
if ($winUIMajorVersion -eq "2") {
1718
$fileContents = $fileContents -replace '<WinUIMajorVersion>3</WinUIMajorVersion>', '<WinUIMajorVersion>2</WinUIMajorVersion>';
1819
$fileContents = $fileContents -replace '<PackageIdVariant>WinUI</PackageIdVariant>', '<PackageIdVariant>Uwp</PackageIdVariant>';
1920
$fileContents = $fileContents -replace '<DependencyVariant>WinUI</DependencyVariant>', '<DependencyVariant>Uwp</DependencyVariant>';
21+
$fileContents = $fileContents -replace 'Uno.WinUI', 'Uno.UI';
2022
}
2123

2224
Set-Content -Force -Path $filePath -Value $fileContents;

ProjectHeads/App.Head.Uno.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@
2828
This import must be inside THIS file to allow swapping between Uno.UI and Uno.WinUI via pwsh.
2929
Changes to this file are suppressed by git when switching to avoid changing the default for all users.
3030
-->
31-
<Import Project="$(MSBuildThisFileDirectory)\App.Head.Uno.WinUI.Dependencies.props" Condition="'$(WinUIMajorVersion)' != '2'" />
32-
<Import Project="$(MSBuildThisFileDirectory)\App.Head.Uno.UI.Dependencies.props" Condition="'$(WinUIMajorVersion)' == '2'" />
31+
<Import Project="$(MSBuildThisFileDirectory)\App.Head.Uno.WinUI.Dependencies.props" />
3332
</Project>

0 commit comments

Comments
 (0)