Teamcity MSBuild发布输出目录

Kit*_*nes 5 msbuild teamcity publish

我正在使用Teamcity发布我创建的Web应用程序,包含目标Rebuild, ResolveReferences, _WPPCopyWebApplication, Package和以下命令行参数

/p:Configuration=Release;PackageLocation="%system.teamcity.build.workingDir%/Publish"
/p:WebProjectOutputDir=publish
/p:OutDir=publish\bin\
/p:DebugSymbols=false 
/p:DebugType=None
/verbosity:diag
Run Code Online (Sandbox Code Playgroud)

包正确创建,但最终在一个文件夹中

%system.teamcity.build.workingDir%/Publish/Archive/Content/C_C/%system.teamcity.build.workingDir%/Web/obj/Release/Package/PackageTmp

我期望它在哪里创建

%system.teamcity.build.workingDir%/Publish

要么

%system.teamcity.build.workingDir%/Publish/Web

这可能吗?

小智 7

添加/p:PackageLocation="%system.teamcity.build.workingDir%/Publish/Web"到构建步骤的参数.