@SETLOCAL
CALL "%VS90COMNTOOLS%vsvars32.bat"
SET SolutionName=.\HelloApplicationDeployment\HelloApplicationDeployment.sln
SET AssemblyKeyFile=.\HelloApplicationDeployment\HelloApplicationDeployment.snk
ECHO.
ECHO If key file is not found, will generate a new key file...
IF NOT EXIST %AssemblyKeyFile% sn -k %AssemblyKeyFile%
ECHO.
ECHO Building the project and deploying the sample assembly...
@msbuild %SolutionName% /t:Build /p:Configuration=Release /fileLogger /fileLoggerParameters:LogFile=Build.log
@btstask AddResource -Type:System.BizTalk:BizTalkAssembly -Source:dlls\Schemas.dll -Options:GacOnAdd
@btstask AddResource -Type:System.BizTalk:BizTalkAssembly -Source:dlls\Maps.dll -Options:GacOnAdd
@btstask AddResource -Type:System.BizTalk:BizTalkAssembly -Source:dlls\Orchestrations.dll -Options:GacOnAdd