4

I am new on azure devops and not an expert on builds and I have a problem creating a build of an ASP.NET MVC 4.5 project

In my "BuildSolution" task, I have the following MsBuild arguments :

/p:DeployOnBuild=true 
/p:WebPublishMethod=FileSystem 
/p:PackageAsSingleFile=true
/p:SkipInvalidConfigurations=true 
/p:PackageLocation="$(build.artifactstagingdirectory)\\" 
/p:EnableUpdateable=false 
/p:PrecompileBeforePublish=true 

But at the end of the process, I have a package to deploy with WebDeploy. Here are the files generated :

build generated files

I don't want this, I only want one zip file containing my "ready to go website". Package that i will upload by FTP next to my webserver.

What's wrong with my configuration?

1 Answer 1

1

You are not archiving your build outputs to be dropped in the Build Drop Location.

All you need to do is add the archive parameter and you will get an output in the desired format.

You can also try this below-mentioned task, it does the job for you very easy!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.