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