开发者

Saving Working Directory path when distributing a project

开发者 https://www.devze.com 2023-01-14 20:57 出处:网络
In Visual Studio you can specify the working directory of your executable by going to propject properties > debugging (this is needed to run Ogre projects for example from within Visual Studio). My

In Visual Studio you can specify the working directory of your executable by going to propject properties > debugging (this is needed to run Ogre projects for example from within Visual Studio). My working directory is usually in the form of $(SolutionDir)\bin\release\$(ProjectName).exe.

When I distribute the project, the working directory te开发者_如何学Cxt box is wiped (I am assuming it is saved in the .suo files) as I distribute only the .proj and .sln files. Is there any way to preserve/save that so that when I distribute the project, the users don't have to put the working directory every time?

Note: I am using Visual Studio 2008


The debugging settings are per project file and are stored in the project .user file.


Well, there is no way to 'preserve' the info. Visual Studio 2010 moves the options so that they are not user independent anymore.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号