Teamcity MSBuild publishes output directory

I use Teamcity to publish the web application I created with goals Rebuild, ResolveReferences, _WPPCopyWebApplication, Packageand the following command line options

/p:Configuration=Release;PackageLocation="%system.teamcity.build.workingDir%/Publish"
/p:WebProjectOutputDir=publish
/p:OutDir=publish\bin\
/p:DebugSymbols=false 
/p:DebugType=None
/verbosity:diag

The package is created correctly, but gets into the folder

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

where I expect it to be created in

%system.teamcity.build.workingDir%/Publish

or

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

Can this be done?

+5
source share
1 answer

Add /p:PackageLocation="%system.teamcity.build.workingDir%/Publish/Web"to your parameters for the build phase.

+6
source

All Articles