Git Product home page Git Product logo

Comments (8)

Grabacr07 avatar Grabacr07 commented on June 4, 2024 1

I don't think VirtualDesktop has anything to do with it because I get the same error when I run a new empty WinUI 3 project.

0x76B0EC52 (KernelBase.dll) で例外がスローされました (App2.exe 内): WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'
onecore\com\combase\winrt\error\restrictederror.cpp(1017)\combase.dll!76663529: (caller: 765728E2) ReturnHr(1) tid(a88) 8007007E 指定されたモジュールが見つかりません。
0x76B0EC52 (KernelBase.dll) で例外がスローされました (App2.exe 内): WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'
onecore\com\combase\winrt\error\restrictederror.cpp(1017)\combase.dll!76663529: (caller: 765728E2) ReturnHr(2) tid(a88) 8007007E 指定されたモジュールが見つかりません。
0x76B0EC52 (KernelBase.dll) で例外がスローされました (App2.exe 内): WinRT originate error - 0x80000013 : 'The given object has already been closed / disposed and may no longer be used.'
onecore\com\combase\winrt\error\restrictederror.cpp(1017)\combase.dll!76663529: (caller: 765728E2) ReturnHr(3) tid(a88) 8007007E 指定されたモジュールが見つかりません。

from virtualdesktop.

Grabacr07 avatar Grabacr07 commented on June 4, 2024 1

Okey, I understand that we need the .NET 5 version for WinUI 3.
I'll look into making it a separate package or downgrading the current package, but please wait a bit as I plan to prepare it.

from virtualdesktop.

Grabacr07 avatar Grabacr07 commented on June 4, 2024 1

@Slion I've made it compatible with .NET 5 and pushed it to NuGet as version 5.0.5, so you can use it.

from virtualdesktop.

Grabacr07 avatar Grabacr07 commented on June 4, 2024 1

Sorry, I can't reproduce it in my environment, so troubleshooting is difficult.
You may want to review the Visual Studio Installer to see if you are missing the any SDKs or runtimes.

from virtualdesktop.

Slion avatar Slion commented on June 4, 2024

I see, thanks for looking into it. I think .NET 5 did not have that issue. There is no NuGet package to run with .NET5?

from virtualdesktop.

Slion avatar Slion commented on June 4, 2024

I can upgrade to 5.0.5 and it work with .NET 6. However it won't compile with .NET 5. I get the following error:

C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(427,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WPF available for the specified RuntimeIdentifier 'win10-arm64'.

If I remove the dependency on VirtualDesktop it compiles fine.

Following errors are showing up too:

Warning	NU1702	ProjectReference 'C:\Dev\MyProject\App\App.csproj' was resolved using '.NETCoreApp,Version=v5.0' instead of the project target framework '.NETFramework,Version=v4.5.1'. This project may not be fully compatible with your project.	Package	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets	1802	
Error	NETSDK1082	There was no runtime pack for Microsoft.WindowsDesktop.App.WPF available for the specified RuntimeIdentifier 'win10-arm64'.	App	C:\Program Files\dotnet\sdk\6.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets	427	

from virtualdesktop.

Slion avatar Slion commented on June 4, 2024

That's strange, I just create a new WinUI project add VirtualDesktop NuGet and I get that:
image

from virtualdesktop.

Slion avatar Slion commented on June 4, 2024

Build issues were fixed after updating Visual Studio 2022.
I could switch back to .NET 5.
Exceptions and hang on exit was due to not closing child window on close:
microsoft/microsoft-ui-xaml#6662

from virtualdesktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.