Comments (8)
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.
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.
@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.
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.
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.
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.
That's strange, I just create a new WinUI project add VirtualDesktop NuGet and I get that:
from virtualdesktop.
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)
- The current SynchronizationContext may not be used as a TaskScheduler.
- Latest windows 10 update --> Binding failure: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.5.0.0 HOT 2
- The notification to switch a virtual desktop may raise twice. / デスクトップ変更通知が2回来ることがある。 HOT 1
- Broken on Fast Ring (20270+) because of FC_USER_MARSHAL parameter changes HOT 2
- System.NotSupportedException: Specified method is not supported HOT 1
- Cannot run on Win11 HOT 1
- Is there anyway to capture screenshot from second desktop when we are in primary without moving to second desktop HOT 2
- Library not working on windows 11 HOT 2
- WinUI 3 and .NET 5 HOT 7
- Desktop name is empty HOT 4
- Desktop name is empty
- "You must target Windows 10 or later in your 'app.manifest' and run without debugging." HOT 2
- Crash when calling VirtualDesktop.Current.Id on latest Windows 11 Insider build HOT 8
- Avoid log spam
- Not working with Windows 11 22H2 ? HOT 39
- Virtual desktop is null of msedge and notepad++ HOT 2
- Problem with Windows 11 22H2 HOT 2
- Runtime Exception on Publish with Produce Single File option selected
- Add .NET 7.0 compatibility HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualdesktop.