I want to copy my dll generated in bin folder to a file location on Post Build Event in vs2010.
Can some one help me on that.
Thanks
I want to copy my dll generated in bin folder to a file location on Post Build Event in vs2010.
Can some one help me on that.
Thanks
You want to add something like:
to you post-build event on the Build Events tab in the project properties page. The
/Y
will stop it from prompting you to confirm an overwrite.If you also need to copy the
.pdb
file, you will need something like this:You can see more substitution tokens (the $XXX values) by clicking the Edit Post-build... button in the properties tab and then expanding the Macros>> button.
Right-click the project, then go to Properties->Build Events->Post-build command line.
Then type this in:
Does that help?
We use the following post build event for copying plugin dlls to the web application's plugin directory:
This works across multiple machines where the physical path may be different, but relies upon the destination being relative to the $(SolutionDir).
For those of you that want to copy everything from the Output folder