Skip to content

Commit

Permalink
Parameterize winappsdk version (#613)
Browse files Browse the repository at this point in the history
* Parameterize winappsdk version

* Fix indent
  • Loading branch information
dotMorten authored Dec 3, 2024
1 parent d4ea16b commit cc48e96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<NetCatalystTargetFramework Condition="'$(NetCatalystTargetFramework)'==''">$(NETMauiTarget)-maccatalyst17.0</NetCatalystTargetFramework>
<NetiOSTargetFramework Condition="'$(NetiOSTargetFramework)'==''">$(NETMauiTarget)-ios17.0</NetiOSTargetFramework>
<MauiVersion Condition="'$(MauiVersion)'==''">8.0.3</MauiVersion>
<WinAppSDKVersion Condition="'$(WinAppSDKVersion)'==''">1.4.230822000</WinAppSDKVersion>
</PropertyGroup>
<PropertyGroup>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<PackageReference Include="CommunityToolkit.WinUI.UI.Animations" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls" Version="7.1.2" />
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.2" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.1" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="$(WinAppSDKVersion)" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<UseWinUI>true</UseWinUI>
<IncludeXamlFilesInNugetPackage>False</IncludeXamlFilesInNugetPackage>
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
<WindowsSdkPackageVersion>10.0.19041.34</WindowsSdkPackageVersion> <!-- Workaround regression in latest .NET SDK. Remove when moving to WinAppSDK v1.6+ -->
<WindowsSdkPackageVersion Condition="$([MSBuild]::VersionLessThan('$(WinAppSDKVersion)','1.6.240923002'))">10.0.19041.34</WindowsSdkPackageVersion> <!-- Workaround regression in latest .NET SDK. Remove when moving to WinAppSDK v1.6+ -->
</PropertyGroup>

<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net8.0'))">
Expand Down Expand Up @@ -45,7 +45,7 @@

<ItemGroup>
<PackageReference Include="Esri.ArcGISRuntime.WinUI" Version="$(ArcGISRuntimePackageVersion)" Condition="Exists('$(SolutionDir)toolkit.props')!='true'"/>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.230822000" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="$(WinAppSDKVersion)" />
<PackageReference Include="Markdig" Version="0.31.0" />
</ItemGroup>

Expand Down

0 comments on commit cc48e96

Please sign in to comment.