question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade WindowsAppSDK dependency version

See original GitHub issue

Description

In regards to the issue relating to the WebView2 control freezing when typing too fast: https://github.com/dotnet/maui/issues/12361

The issue has been fixed in a newer dependency version of WindowsAppSDK. Can MAUI please upgrade the references as manually specifying the PackageReference (<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230313.1" />) results in problems building with the following errors:

error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.Mono.win-arm
error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.Mono.win-arm64

Along with this error when attempting to publish via the CLI:

C:\Users\Kieran Devlin\.nuget\packages\microsoft.windowsappsdk\1.2.230313.1\buildTransitive\Microsoft.UI.Xaml.Markup.Co
mpiler.interop.targets(559,9): error MSB3073: The command ""C:\Users\Kieran Devlin\.nuget\packages\microsoft.windowsapp
sdk\1.2.230313.1\buildTransitive\..\tools\net5.0\..\net472\XamlCompiler.exe" "obj\release\net7.0-android\\input.json" "
obj\release\net7.0-android\\output.json"" exited with code 1. [C:\Users\Kieran Devlin\Documents\git\sources\App\..\App.csproj::TargetFramework=net7.0-android]

Steps to Reproduce

  1. Specify the dependency version that fixes the referenced problem (<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230313.1" />)
  2. Build once (the first build seems to work fine)
  3. Build again, this build & all subsequent builds will fail.

Link to public reproduction project repository

N/a

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

N/a

Did you find any workaround?

No response

Relevant log output

No response

Issue Analytics

  • State:open
  • Created 6 months ago
  • Reactions:3
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jfversluiscommented, Mar 22, 2023

Yeah I would assume people would want this as a service release for .NET 7?

@mattleibow ?

1reaction
KieranDevvscommented, Apr 13, 2023

This is because you’re referencing it also in the android and ios app. If you reference it like this, it will work (only for Windows!)

While this may be a temporary work around, Id still like to see the framework take on the upgrade rather than delegating it to users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update existing projects to a different release of the ...
This article provides instructions for updating a project created with an earlier preview or release version of the Windows App SDK or WinUI ......
Read more >
Managing the dependency with the Windows App SDK
Now that we understand how to manage the Windows App SDK dependency in our application, we're ready to start creating our first application....
Read more >
Upgrading - Windows Platform - Ionic.IO
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 ...
Read more >
What's New in Windows App SDK 1.1
To help you build native, engaging, and modern Windows applications, we've just released the 1.1 version of the Windows App SDK.
Read more >
Microsoft.WindowsAppSDK 1.3.230724000
The Windows App SDK empowers all Windows Desktop apps with modern Windows UI, APIs, and platform ... README; Frameworks; Dependencies; Used By; Versions....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found