visual studio - How to copy some file to output directory through 2+ projects -
i have somedll1 have somefile.txt properties
buildaction: content copy: copy if never
i have somedll2 have reference somedll1. have consoleapp have reference somedll2. after build of consoleapp need rebuild somedll1 copying somefile.txt consoleapp output directory. not comfortably. can add reference somedll1 in consoleapp solve problem. dont it. may there other solution?
check solution's properties > project dependencies.
your consoleapp
should depend on somedll1
. means somedll1
re-built each consoleapp
build (automaticly) , references on place.
actually, project dependencies after create projects , adding references described. possibly, you've unchecked manually. check since not references solution build order tooling.
for older versions of visual studio (2010 , lower) there problems in described case. see: how include neccessary files output of independent client project?
Comments
Post a Comment