Skip to main content

Upgrading to 1.6.4 from 1.6.x

The move to @ionic-enterprise/capacitor-windows@1.6.4 moves from Windows App SDK 1.2.x to 1.3.x, and requires moving to .NET 6 for a framework target.

Updating @ionic-enterprise/capacitor-windows#

Update to latest of @ionic-enterprise/capacitor-windows, which should be version 1.6.2 or later.

Updating Capacitor Dependency#

In your Visual Studio projects, update your Capacitor dependency to 1.6.4 in your main project and your package project.

App.csproj
<PackageReference Include="Capacitor" Version="1.6.4" />

Updating Windows App SDK Dependency#

Update your Microsoft.WindowsAppSDK dependency to 1.3.230331000 in your main project and your package project:

App.csproj
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230331000" />

Updating .NET Framework Target#

Update your TargetFramework and TargetPlatformMinVersion in your main project and your package project:

App.csproj
    <TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>

Sync#

The following steps should be taken to ensure the new depenencies are loaded:

Clean the project, run Restore NuGet Packages on the solution, restart Visual Studio, and then rebuild and verify the packages are updated in the dependencies dropdown under neath each project in the solution explorer.

From 1.5.x to 1.6.x for Packaged Apps

The move to @ionic-enterprise/capacitor-windows@1.6.x moves from Windows App SDK 1.0.2 to 1.2.5, and requires moving to .NET 6 for a framework target.

Updating @ionic-enterprise/capacitor-windows#

Update to latest of @ionic-enterprise/capacitor-windows, which should be version 1.6.2 or later.

Updating Capacitor Dependency#

In your Visual Studio projects, update your Capacitor dependency to 1.6.1 in your main project and your package project.

App.csproj
<PackageReference Include="Capacitor" Version="1.6.1" />

Updating Windows App SDK Dependency#

Update your Microsoft.WindowsAppSDK dependency to 1.2.230313.1 in your main project and your package project:

App.csproj
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230313.1" />

Updating .NET Framework Target#

Update your TargetFramework and TargetPlatformMinVersion in your main project and your package project:

App.csproj
    <TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>

Upgrading Complete#

Your project should now be updated to the latest versions of all necessary dependencies.