I have a normal SLN file, and I'm compiling it fine with msbuild from the command line. I do this:
C:\slndir> msbuild /p:OutDir=C:\slnbin\
And it dumps everything into C:\slnbin, except for websites, which get deployed to C:\slnbin_PublishedWebsites\.
What I would like is to not only have all the binaries dropped in the bin dir, but also have each executeable program have it's own "deployed" folder, similar to what each website gets.
So, for example, If I have the following projects: - Common - Lib1 - Service1 - Lib2 - Service2
I wan to get:
C:\slnbin\ // Everything
C:\slbin\Deploy\Service1 // Common, Lib1, Service1
C:\slbin\Deploy\Service2 // Common, Lib2, Service2
I tried doing stuff like "msbuild /p:OutDir=C:\slnbin\$(ProjectName)", but it just treats it as a literal and creates an actual "$(ProjectName)" subdir.
Preferrably, I would not have to modify every individual project and so on.
Is this possible? Easy?