continuous integration - VSO Copy website static files and binaries (not C# files) -


i trying set continuous integration on server using visual studio online.

created new agent pool. installed , configured new build agent added agent pool. trigger new build of code handled in agent pool.

i manage build how set task "copy , publish build artifacts".

my goal here copy final website files e.g. binaries, images, cshtml, not files such c# files. sort of "right-click > publish" operation in visual studio.

what value need enter in "copy root" field? (please see image below)

enter image description here

the documentation located at: https://msdn.microsoft.com/en-us/library/vs/alm/build/scripts/variables

it boils down output path binaries is. if you're not overriding via msbuild argument, $(build.sourcesdirectory) value of **\bin\* you're after.

for web application, make sure you're building appropriate msbuild arguments (something along lines of /p:outdir=$(build.stagingdirectory) /p:deployonbuild=true /p:webpublishmethod=package /p:packageassinglefile=true /p:skipinvalidconfigurations=true should trick). _publishedwebsites folder in $(build.stagingdirectory).

then need publish copy root of $(build.stagingdirectory) , contents of **\_publishedwebsites\*

keep in mind publish build artifacts means publish build artifacts to vsts or file share, not deploy build artifacts web server


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -