views:

78

answers:

1
+1  Q: 

Change output path

I have mutipule web projects (please don't ask me why with multipule namespaces within them, I didn't create it. lol) and the dlls need to be compiled to the main web project. The problem is that I cannot give a disk directory path because we build on another machine and that directory path is different.

Is there a way that I can dynamically set the output path by the project name?

A: 

I think you might want to look at the post build events on the individual projects (Look in the Properties for a project, under the Build Events tab). There you can create events that copy files and express the path via variables like {TargetPath} and {ProjectPath} that will be different for different setups.

CSharpAtl
Worked!copy $(TargetFileName) $(SolutionDir)\WebRoot\binThank you
BoredOfBinary