Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Universal Windows app only works when VS2015 project on install drive

Steps to rep:

  1. Create a new, blank, UWP, VC++ app project (File --> New --> Project --> Visual C++ --> Windows --> Universal --> Blank App)
  2. Store the project on D:\ (Visual Studio is installed on C:)
  3. Hit F5 to build and run the app (I'm running in Debug, x64)

Error:

Error image


4. Now repeat the process but this time store the project on C:. Everything works just fine.


How do I configure Visual Studio to let me run projects stored on a drive different than the drive on which VS is installed?


Specs:

  • Microsoft Visual Studio Enterprise 2015
  • Version 14.0.24720.00 Update 1
  • Microsoft .NET Framework
  • Version 4.6.01038
  • Windows 10 (fully patched).
like image 682
Malachi Avatar asked Dec 03 '15 20:12

Malachi


People also ask

How to create universal apps in Visual Studio 2015?

Now open Visual Studio, Click on new project, select Universal in Windows and there you go, now you can create Universal Apps. SDK has been installed and integrated in VS 2015.

Does Visual Studio 2019 support UWP development on Windows 10?

Visual Studio 2019 supports UWP development only on Windows 10. For more details, see Visual Studio Platform targeting and System requirements. Visual Studio. You will also need the optional Universal Windows Platform development workload. After installing this software, you need to enable your Windows 10 device for development.

What is the Universal Windows platform?

With the Universal Windows Platform and our one Windows core, you can run the same app on any Windows 10 device, from phones to desktops. Create these Universal Windows apps with Visual Studio and the Universal Windows App development tools. Run your app on a Windows 10 phone, a Windows 10 desktop, or an Xbox. It's the same app package!

What is Visual Studio C++ UWP tools?

The Visual Studio workload that provides the tools for creating UWP apps and has an optional installation component that is required for C++ UWP development called “C++ Universal Windows Platform tools”:


1 Answers

As per my comment on the question, I have the same issue. I'm not sure this counts as an answer as it's a workaround, but this at least for a C# Universal project...

Go to the project properties for the app and set the Output path to a location on C drive.

e.g. C:\dev\MyTestApp\bin\x86\Debug

(for Debug build. Likewise substitute x64 for x86 for 64bit etc)

It will build and run with the output on C drive but the project remains on the other drive.

Not an ideal solution, but avoids the error.

like image 94
tjmoore Avatar answered Oct 19 '22 21:10

tjmoore