How do I set up the MSBuild script to use the outdirectory's set in the csproj files while building the entire solution? -


i'm not sure how can msbuild script use outputpath, outputdirectory values csproj files. i've seen examples set outputpath in msscript dumps output in 1 big folder. want individual projects have own output paths , msbuild build solution in such way output projects , created in corresponding output directories. thanks.

there not easy way. 1 option extend msbuild , have copy output each project common folder.

if @ microsoft.common.targets file in c:\windows\microsoft.net\framework\v4.*\ can see how load custom targets file @ both beginning , end of folder. if add custom.after.microsoft.common.targets c:\program files (x86)\msbuild\v4\ folder can have load file $(solutiondir)\solution.targets. allow extend each solution differently , can add custom actions want inside every solution applies every project. use , works great.


Comments