MScholtes/VirtualDesktop

A Question: Which file will be used for which build range ?

Closed this issue · 4 comments

Hi,
Which file will be used for which build range as we have
Single VirtualDesktop, surly which will be used for all windows 10 build range from 19041 to less than 22000.
But what are ranges for these 3 files for Window 11 ?
VirtualDesktop11-21H2
VirtualDesktop11.cs
VirtualDesktopInsider.cs

I am confused. Please guide @MScholtes @NyaMisty or anyone

Hello @Taster-git,

it's not that complicated:
VirtualDesktop11.cs is for the current version of Windows 11, that means Windows 11 22H2.
VirtualDesktop11-21H2.cs is for Windows 11 21H2.
VirtualDesktopInsider.cs is for Insider versions of Windows 11, but seems not to work anymore.

Greetings

Markus

Hello @Taster-git,

it's not that complicated: VirtualDesktop11.cs is for the current version of Windows 11, that means Windows 11 22H2. VirtualDesktop11-21H2.cs is for Windows 11 21H2. VirtualDesktopInsider.cs is for Insider versions of Windows 11, but seems not to work anymore.

Greetings

Markus

Thanks for your reply.
Have you plan to convert these classes to .Net6.0 ?
I am facing some issues because my main GUI project is based on .Net6.0, So I am using these libs with .net6.0.
When I call IsPinnedApplication() of any application like notepad, file explorer, office apps etc then Error received: The method or operation is not implemented
Tested on Windows builds: 19045, 19043, 22000, 22621
I need your assistance. @MScholtes @NyaMisty @Zoynels @DennisKae

Hello @Taster-git,

there are two versions of .Net:
The .Net Framework, which is integrated in every Windows and supports platform-specific functions.
Then the .Net Core, which works across operating systems and therefore does not offer platform support.

The Windows virtual desktops are platform-specific, so they can only be addressed by the .Net Framework. For the reasons given above, I will certainly not change this.

However, there are implementations that provide special declarations or libraries so that .Net Core also works.

Please understand that I cannot help, it is not my mission to help programming novices, I often find it hard to maintain my own projects as I do all of this in my spare time. Can you try to target .Net Framework in your VS project?

Greetings

Markus

Answered