-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application Manifest Not Taking Effect #26
Comments
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. |
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:
|
I'm using PM> Install-Package VirtualDesktop -Version 4.0.0. I want to run this in DEBUG mode but at line number 100 (
I have checked Major version number by adding Environment.OSVersion.Version.Major in my local code and it returns 10. Note: If I add VirtualDesktop as Project reference it works correctly with DEBUG mode. |
Same problem on Win10 20H2 with .NET 5, VS 2019. And adding [STAThread] doesn't help. |
I'm attempting to use this library on Windows 10 with Visual Studio Community 2017 Version 15.4.2. I installed VirtualDesktop through NuGet:
PM> Install-Package VirtualDesktop -Version 2.0.0-beta3
I've copied the app.manifest file from the example project, and have verified in the csproj file that it's looking at the correct manifest file. I run the application in release mode, yet I get the
System.NotSupportedException
.Any idea what's wrong?
If I comment out the
VirtualDesktopHelper.ThrowIfNotSupported()
calls, things work as expected.The text was updated successfully, but these errors were encountered: