Azure DevOps build Artifacts not getting generated in Net web app

0 votes

I am building the application through Azure DevOps(VSTS) pipeline. This is the build pipeline parameters being used:

Build parameters

These are the Publish Artifact parameters:

Publish Artifact parameters

Initially, I was using the "Copy file task" but then got to know that this task is used only in .net desktop-based applications and not in web-based apps so I have disabled this task. The default values being used for two variables are:

BuildConfiguration = release BuildPlatform = any CPU

After building the application, it shows build succeeded and a message as: "Directory 'D:\a\1\a' is empty. Nothing will be added to build 'Ca App artifact'".

May I know why I am not getting the artifacts?

Mar 22, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,891 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
I’ve updated the pipeline by adding a ‘Copy Files’ task to copy the WebSite from its folder to $(build.artifactstagingdirectory). The artifacts will be then generated. If the problem persists then try these MS build arguments. Also, you have to show me your release pipeline with arguments, steps, and all. /p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:publishUrl="$(build.artifactstagingdirectory)\\".
answered Mar 25, 2022 by narikkadan
• 63,600 points

edited Mar 5
0 votes
Your project is not building successfully as it is skipping some invalid configurations. When you remove the argument /p:SkipInvalidConfiguration=true from your build task. You will be able to find the error
answered Sep 16, 2022 by Rajat

edited Mar 5
0 votes
Change the solution from Cartus.sln to capture the website.publishproj
answered Mar 8, 2024 by anonymous

edited Mar 5

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

Is there a way to embed a framework for ios build in Azure DevOps?

I want to build an IPA package ...READ MORE

Mar 20, 2022 in Other DevOps Questions by Kichu
• 19,040 points
700 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP