Malachi
Malachi

Reputation: 133

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:

Upvotes: 6

Views: 250

Answers (1)

tjmoore
tjmoore

Reputation: 1084

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.

Upvotes: 3

Related Questions