My project disk drive changed from E: to D:. Everything compiles to the correct places on the D: drive but when trying to start the execution (Debug or release) it can't find the newly created executables. It looks for E:\.... and of course that doesn't exist. It must be something simple, but I can find no reference to E: anywhere in options or project files. Where does it set this path? All I can find is references to relative paths.
1 解決方案
Quoting - nvaneck
My project disk drive changed from E: to D:. Everything compiles to the correct places on the D: drive but when trying to start the execution (Debug or release) it can't find the newly created executables. It looks for E:.... and of course that doesn't exist. It must be something simple, but I can find no reference to E: anywhere in options or project files. Where does it set this path? All I can find is references to relative paths.
Try deleting the (hidden) SolutionName.suo file from your solution directory. It contains debug target, breakpoint locations, bookmarks and similar stuff. It is known to go berzerk on occasion.
連結已複製
11 回應
Quoting - Steve Lionel (Intel)
Project >Properties > Debugging > Command. Look also at Linker > Output File.
Yes, well I did that before I posted and it says:
$(OUTDIR)/MicrOsiris.exe
Which doesn't help me. As I said in the post, the files DO go in the correct directory. It's just that the debugger can't find the executable, thinking it's on a non-existent drive instead of where the linker put it.
Quoting - Steve Lionel (Intel)
What does it say under Debugging > Command Line? That's where Visual Studio will look for the program.
$(TargetPath)
but I can't find where it'svalue is set....
Quoting - Steve Lionel (Intel)
$(TargetPath) is, as I understand it, taken from the Linker's output setting.
Quoting - nvaneck
My project disk drive changed from E: to D:. Everything compiles to the correct places on the D: drive but when trying to start the execution (Debug or release) it can't find the newly created executables. It looks for E:.... and of course that doesn't exist. It must be something simple, but I can find no reference to E: anywhere in options or project files. Where does it set this path? All I can find is references to relative paths.
Try deleting the (hidden) SolutionName.suo file from your solution directory. It contains debug target, breakpoint locations, bookmarks and similar stuff. It is known to go berzerk on occasion.
Quoting - Jugoslav Dujic
Try deleting the (hidden) SolutionName.suo file from your solution directory. It contains debug target, breakpoint locations, bookmarks and similar stuff. It is known to go berzerk on occasion.
That's it! Thanks, Juroslav. Your suggesion was on the money. It does have the E: reference in it and deleting it fixed the problem