Comments (4)
Ok I think this could be declared as "bug" because its very misleading. The actual issue is, that an exceptions is been raised about a missing STA-Thread. It should return another message then "not supported" because it's an implementation issue not an compatibility issue.
The solution to this is as following: Add "[STAThread]" to your main method like so:
[STAThread]
static void Main(string[] args)
{
...
}
from virtualdesktop.
Same problem on Win10 20H2 with .NET 5, VS 2019. And adding [STAThread] doesn't help.
from virtualdesktop.
I'm having the same Issue here. Interestingly the same issue occurs with the sample project included while using the NuGet Version. It works while referencing the source code directly. But removing the source code and adding the NuGet Version resulting in the same behaviour. There seems to be something different in the NuGet Version.
from virtualdesktop.
I'm using PM> Install-Package VirtualDesktop -Version 4.0.0.
It throws "You must target Windows 10 in your app.manifest and run without debugging.", I have checked app.manifest is correct.
I want to run this in DEBUG mode but at line number 100 (
) : It return false even my major version is 10.I have checked Major version number by adding Environment.OSVersion.Version.Major in my local code and it returns 10.
But while using Nudget package reference there is something wrong and returns false as per above link
Note: If I add VirtualDesktop as Project reference it works correctly with DEBUG mode.
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
- Exceptions on app exit HOT 8
- 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.