0
votes

I have loaded my web role project to Visual Studio Team Services. In the VSTS portal I created a new build definition. I added tasks Visual Studio Build and Publish Artifacts.

Task Visual Studio Build MSBuild Arguments: /t:Publish /p:PublishDir=PublishDir\ /p:TargetProfile=Cloud

Publish Aritifact:drop Path to Publish : $(Build.ArtifactStagingDirectory)

However after I run this definition I go to "Artifacts">"Explore" there is nothing in the drop location.

1

1 Answers

0
votes

We use worker roles but the deployment sequence should be the same (unless you're talking about web apps and not roles)
In build arguments we target the ccproj and add that /t:Publish /p:TargetProfile=$(targetProfile) /p:SkipInvalidConfigurations=true /p:OutputPath=bin\ /p:PublishDir="$(build.stagingDirectory)\\"
Then we have a deploy cloud service step with that as arguments for the packages $(build.stagingDirectory)*.cspkg and $(build.stagingDirectory)*.cscfg
Hope that works for you!