debugging - Visual Studio / Properties / Debug / Working Directory want it permanent but don't want to check in the *.user file -
the project setting debugging / working directory in visual studio 20015 saved default in *.user file wich don't check in in repo because it's user specific. still i'd have else $(projectdir) standing there when clean checkout of project. there other place store working directory besides *.user file?
thanks
edit: original idea have solution multiple projects , binaries (dlls , exes) created end in folder called bin. , if want debug don't want edit working direktory again after clean checkout.
edit2: make more clear. in post build step of every project within solution copy binaries in bin folder. if start 1 of executeables within vs starts them $(projectdir) folder , of corse not bin folder , why not find dlls , why want set working directory. of corse change output directory of projects lot of files ending in bin folder don't want there. ... try anyway maybe missed ... continued
edit3: expected if change output directory bin folder works fine. except files end there , don't want that. *.pbo (which ok) *.iobj *.ipdb etc. maybe that's price pay don't it.
so question remains. how can have more control on file ends after build , still can run vs without changing working dir?
the working directory should not have directory contains dlls. in fact, don't want requirement running application. not hugely unexpected failure mode, potential security risk.
put required dlls in same directory application's executable. that's first place loader look. if necessary, use post-build event in library projects copy them there.
Comments
Post a Comment