Wednesday, 15 January 2014

wcf - Continuous Deployment multiple projects from one solution c# -



wcf - Continuous Deployment multiple projects from one solution c# -

i have 1 solution multiple projects inside:

project1 - class library project2 - mvc project3 - class library project4 - wcf

i want tfs build projects automatically deploy mvc project http://somehost/mvc , wcf http://somehost/wcf.

i have tried alter build definition mvc gets deployed.

by way: gated check-in enabled on tfs.

i had exact issue, , solved manually editing project files.

this way tfs deploy both projects on build. note build configuration names - i've created these tfs build definitions point @ (i have 2 build definitions: dev & qa). applying propery grouping these definitions mean projects don't deployed every time build projects in dev environment when running debug config. means can deploy different locations depending on whether i'm running qa or dev build.

example:

<propertygroup condition="'$(configuration)|$(platform)' == 'dev-build-|anycpu'"> <debugsymbols>true</debugsymbols> <debugtype>full</debugtype> <optimize>false</optimize> <outputpath>bin\</outputpath> <defineconstants>debug;trace</defineconstants> <errorreport>prompt</errorreport> <warninglevel>4</warninglevel> <deployonbuild>true</deployonbuild> <deploytarget>msdeploypublish</deploytarget> <msdeploypublishmethod>remoteagent</msdeploypublishmethod> <msdeployserviceurl>http://dev-server-address</msdeployserviceurl> <deployiisapppath>projectminder.api-maintenance</deployiisapppath> <username><machine-name>\builduser</username> <password>*****</password> <authtype>basic</authtype> <allowuntrustedcertificate>true</allowuntrustedcertificate> </propertygroup> <propertygroup condition="'$(configuration)|$(platform)' == 'qa-build|anycpu'"> <debugtype>pdbonly</debugtype> <optimize>true</optimize> <outputpath>bin\</outputpath> <defineconstants>trace</defineconstants> <errorreport>prompt</errorreport> <warninglevel>4</warninglevel> <deployonbuild>true</deployonbuild> <deploytarget>msdeploypublish</deploytarget> <msdeploypublishmethod>remoteagent</msdeploypublishmethod> <msdeployserviceurl>http://qa-server-address</msdeployserviceurl> <deployiisapppath>projectminder.api</deployiisapppath> <username><machine-name>\builduser</username> <password>*****</password> <authtype>basic</authtype> <allowuntrustedcertificate>true</allowuntrustedcertificate> </propertygroup>

update:

i should add together solution vs2010. believe in newer versions (2012+) can define publish profiles per project (.pubxml) tfs pick up.

c# wcf asp.net-mvc-4 tfs continuous-deployment

No comments:

Post a Comment