Git Product home page Git Product logo

Comments (4)

MrX13415 avatar MrX13415 commented on May 24, 2024 3

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.

Chaoses-Ib avatar Chaoses-Ib commented on May 24, 2024 1

Same problem on Win10 20H2 with .NET 5, VS 2019. And adding [STAThread] doesn't help.

from virtualdesktop.

MrX13415 avatar MrX13415 commented on May 24, 2024

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.

nimeshvaghasiya avatar nimeshvaghasiya commented on May 24, 2024

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 (

if (Environment.OSVersion.Version.Major < 10) return false;
) : 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)

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.