使用批处理 BUILD 解决方案


@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

原文地址:https://www.cnblogs.com/moonwebmast/p/1779173.html