Julien Cheyssial's Blog

It's all about a nice UI

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Books I'm reading

My Articles

Subscriptions

Post Categories



Saturday, March 27, 2004 - Posts

Deploy/Undeploy BizTalk Assemblies

During the development phase of your BizTalk orchestrations, it's pretty long and boring to continuously deploy / undeploy your assemblies in the GAC and BizTalk Engine. So, here is a pretty usefull command script to automatically deploy or undeploy your assembly :

DEPLOY.CMD :

@SETLOCAL

@CALL "%VS71COMNTOOLS%vsvars32.bat"

@SET AssemblyKeyFile=MyProject.snk
@SET SolutionName=MyProject.sln
@SET AssemblyName=MyProject.Orchestration
@SET BizTalkPath="C:\Program Files\Microsoft BizTalk Server 2004\"

@ECHO.
@ECHO If key file is not found, will generate a new key file...

@IF NOT EXIST %AssemblyKeyFile% sn -k %AssemblyKeyFile%

@ECHO.
@ECHO Building solution...

@DevEnv %SolutionName% /Build Development /Out Build.log

@ECHO.
@ECHO GAC and deploy the Assemblies...

@BTSDeploy DEPLOY Assembly=%AssemblyName%\bin\Development\MyProject.Schemas.dll Install=True Log=Deploy
@BTSDeploy DEPLOY Assembly=%AssemblyName%\bin\Development\MyProject.Orchestration.dll Install=True Log=Deploy

@ENDLOCAL

@PAUSE

 

UNDEPLOY.CMD :

@SETLOCAL

@CALL "%VS71COMNTOOLS%vsvars32.bat"

@SET AssemblyName=MyProject.Orchestration
@SET BizTalkPath="C:\Program Files\Microsoft BizTalk Server 2004\"

@ECHO.
@ECHO Undeploying assemblies from BizTalk...

@BTSDeploy Remove Assembly=%AssemblyName%\bin\Development\MyProject.Orchestration.dll Uninstall=True Log=Undeploy
@BTSDeploy Remove Assembly=%AssemblyName%\bin\Development\MyProject.Schemas.dll Uninstall=True Log=Undeploy

@ENDLOCAL

@PAUSE

posted Saturday, March 27, 2004 11:05 AM by jcheyssial




Powered by Dot Net Junkies, by Telligent Systems