I have created two websites in single solution. I have created a VSTS build definition with following MSBuild arguments:

/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"

Build succeeds without any error but in artifacts folder, there is no data. There is no web deploy package in artifact folder. Why so?

What am I doing wrong?

  • What happens if you change your build location to an absolute path or to simply build.stagingdirectory? Can you show us the ouput of this command and what it is translated to when running? – gumol Dec 7 '17 at 1:42
  • Let me change the packageLocation to build.stagingdirectory and see what happens. Thanks!! – VishwajeetMCA Dec 7 '17 at 4:36
  • 1
    Did you find a solution to your problem and can self answer your question ? – Tensibai Dec 22 '17 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.