visual studio 2010 - Relative paths with MSBuild project vs solution -
i have number of projects joined solution. every project has it's own directory structure, , csproj files located on diferrent level of folder structure. every csproj has outputpath property specified. outputpath - relative path , varies project project in such way projects have same output dir. work ok if build separate project. changes if seek build solution file. in case every project output folder differs (depends on number of '..\' in project's outputpath).
i know, before moment working fine. nobody changed build.cmd neither sln or csproj files. have situation described above.
so question - affects how relative path evaluated? mean how can forcefulness relative outputpath evaluated starting folder csproj file of particular project located. not folder .sln file is.
let's assume have next directory structure: dir1 a.sln dir2 a.csproj dir21 dir3 b.csproj
a.csproj has output path set '../../_bin' above dir1 if counted a.csproj folder b.csproj has output path set '../../../_bin' same - dir1 if counted b.csproj
a.sln contains both - a.csproj , b.csproj.
when run msbuild project build 'dir1/../../_bin' , b project 'dir1/../../../_bin' - both relative paths of projects files counted solution file location, not project files.
well, able find out causing this. custom .targets file, inferring solutiondir property @ start of msbuild. did find out using msbuild explorer. tool proved useful in case - not aware of 3rd party .target files on system.
visual-studio-2010 msbuild
No comments:
Post a Comment