Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Automatically Deploying an Application - Visual Studio

RSS
Modified on Thu, Jan 01, 2009, 11:29 AM by Administrator Categorized as Visual Studio and Developer Tools
To automatically deploy an application upon successful build of the Release version, execute the following procedure.

Procedure

  1. In Solution Explorer, navigate to the startup project > Properties > double-click.
  2. Select the Build Events tab
  3. In the Post-build event command line field enter the following text, replacing MyCompany and MyApplication as appropriate.

if "$(ConfigurationName)" == "Release" goto :Deploy
goto :End
 :Deploy
C:
cd\Program Files\Jasinski Software\Desktop Widgets
copy "$(TargetDir)*.*" /y
 :End

Cautions

  1. Be sure the Run the post-build event drop-down shows "On successful build".
  2. Be sure to create the target directory. The script won't fail -- the files will simply be copied to the wrong directory.

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.