views:

111

answers:

2

Hi, Need to write a post build event in VS 2010 project that copy just the dll and pdb to ....\MainProject\Debug

For some reason that I cannot explain the output path does not work.Nothing gets written.It used to.

How Can I do it? Thanks a lot

+1  A: 

Maybe you've set Run the post-build event setting to When the build updates the project output?

Mohammad
How Can I tell?
Depending on your project type you might find it on Project setting page, under Build Events tab but if youre just trying to redirect output of your project to some directory, the best way is by changing Output path under the build tab of the project settings.
Mohammad
A: 

MSBuild in VS 2010 supports a better way of hooking up Before/After events:

<Target Name="StartDeployAdditionalDependencies" AfterTargets="Build">
    <!-- ... Do stuff ... -->
</Target>

See the following for further details:

http://blogs.msdn.com/b/msbuild/archive/2010/02/18/build-extensibility-with-net-framework-4.aspx

Ade Miller