更新时间:2022-12-05 20:49:29
我想这会起作用:
<PropertyGroup><PreBuildEvent>xcopy /y (ProjectDir)\Configs\Config.$(Configuration).xml $(ProjectDir)\CONFIG\Config.xml</PreBuildEvent></PropertyGroup>
或在VS rigth中单击项目->属性:
<PropertyGroup><PreBuildEvent>xcopy /y (ProjectDir)\Configs\Config.$(Configuration).xml $(ProjectDir)\CONFIG\Config.xml</PreBuildEvent></PropertyGroup>
or in VS rigth click on the project -> Properties:
/p:SolutionConfiguration=%CONFIGURATION%
其中%CONFIGURATION%是Bamboo中的变量,其中说明了您要部署在哪个ENV上,例如 DEV,Test 等./p:SolutionConfiguration=%CONFIGURATION%
where %CONFIGURATION% is a variable in Bamboo saying on which ENV you are deploying, eg DEV, Test etc.