Monday, June 22, 2009

Umbraco Tip #3

Save time by using post build events

Whenever I am building Umbraco user controls there is a of development time and one way to save some time is to use Visual Studio post build events, this saves time by not having to manually copy over the .dll and ascx files from from user control solution to your umbraco solution.

To Add post build events right mouse click on your project > properties > build events. Click on the Edit- Post-build event button.

Here are what my post build events look like. Remeber if your path inludes spaces you will need to surround you copy statments with ""

copy "$(TargetPath)" "E:\Projects\Test Projects\ApplicationForm\bin"
copy "$(SolutionDir)\ApplicationFormUserControls\*.ascx" "$(SolutionDir)\UserControls\ApplicationFormControls\"

No comments: