Grabacr07 / VirtualDesktop

C# wrapper for the Virtual Desktop API on Windows 11.
MIT License
631 stars 135 forks source link

"You must target Windows 10 or later in your 'app.manifest' and run without debugging." #73

Closed ruhchjdbdbhccjjc closed 2 years ago

ruhchjdbdbhccjjc commented 2 years ago

Hi, When I use this library,In some case(console sofware and vsto--- i tried .net4.72 version that pulled in pull requests! ),always get error:"You must target Windows 10 or later in your 'app.manifest' and run without debugging." ,but i created a app.manifest file and target windows 10. So the library only Can be used in wpf ? otherwise , I am wrong? Anyone can help me?

iskmz commented 2 years ago

found this post while having the same problem ... and I think it is solved ... used .net 4.6 in my console app and VirtualDesktop.dll version 2.0.0.0 (pretty old) but the things that made this error / exception go away is Project->Properties->Application->OutputType->WindowsApplication instead of Console Application Also you must do the app.manifest thing as stated in README ...

ruhchjdbdbhccjjc commented 2 years ago

@iskmz Thank your help!