Set Current Working Directory for Visual Studio Projects



  • Hello,

    i am working on .pro files and generate (later) visual studio project files.

    On every new generation process the old vc project with its settings will be overwritten and all things i changed in the vc project will belost.

    One important Variable i have to set is the current working directory ( Project -> Properties -> Debugging -> Working Directory ) which is by default the project path and not the generated binary path

    Is there a way to set the CWD Path inside the qt .pro file so that it will be applied to the generated vc project?



  • Not as far as I know. The debugging working path is stored in the .vcproj.SOMEUSER.user file. You can try and see what happens if you copy the .vcproj.SOMEUSER.user to .vcproj.user. A bunch of defaults are then read from that file.



  • [quote author="Franzk" date="1320248553"]Not as far as I know. The debugging working path is stored in the .vcproj.SOMEUSER.user file. You can try and see what happens if you copy the .vcproj.SOMEUSER.user to .vcproj.user. A bunch of defaults are then read from that file.[/quote]

    Thats cool. I just tested it with the working directory and it worked well, thanks :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.