Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:56:54+00:00 2026-06-18T06:56:54+00:00

Here is brief explanation about my project. By using Build Definition, when I execute

  • 0

Here is brief explanation about my project.

By using Build Definition, when I execute the build, two steps has to be executed

  1. Generate a file
  2. Deploy the file that I generated

To do so, I needed to use ‘Add Items to Folder..’ to add the file that i generated after the first step is done. And, execute the build again for the second step…

How can i automatically add the items to folder? I want to run the build only ONE time..

If my explanation is not clear, please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:56:55+00:00Added an answer on June 18, 2026 at 6:56 am

    When you run your build definition on the build agent you’re executing a build workflow which will do some preparation steps and eventually it will run msbuld to build your projects/solution.
    You can modify the build workflow, but that process has bigger learning curve and you need to be comfortable with Windows Workflow Foundation, that’s why I will concentrate on the msbuild part.

    The general rule is to somehow plug your msbuild target into the life cycle of msbuild process and run your routines, like creation of that extra file and adding it to the appropriate places.
    If you have web application project with a name mywebapplication.csproj you can create mywebapplication.wpp.targets msbuild file which will become part of you web application build process, and you can trigger your own targets. e.g.

    <Target Name="MyTarget" AfterTargets="CoreCompile"> </Target>
    

    CoreCompile is target which comes as a part of your .NET/Sdk/Visual studio install. You can use other targets as well. In the example “MyTarget” will get executed after you trigger compilation of your project.
    In your target you can create the file.

    For web application if you’re publishing it with msdeploy you can use collection to add your own files you had previously created to the deployment package and if you do that your file will be automatically deployed. You can do that in “MyTarget” in the above example.
    A good blog which will give you lots of ideas is http://sedodream.com/, he is the main guy about the build automation process and if you want to get really familiar with the deployment process definitely buy his book. Here he is explaining how to add your own files to the deployment package

    http://sedodream.com/2012/10/09/VSWebPublishHowToIncludeFilesOutsideOfTheProjectToBePublished.aspx

    For other type of projects you need you make your own msbuild project and run it instead. There again you can have your own target where you can do your stuff with the file, you can build explicitly your project, solution by calling <msbuild/>task.

    I hope that helps.

    Biser

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my prob in Brief. I know how to upload a file to
I've run into a bit of an issue. Here's a brief explanation. I have
Here's a brief and not-so-bad intro upon using Credential API in .NET. But I
Here's a brief rundown of my issue: I have a JavaScript function that gets
Here is my brief HTML document. Why is Chrome Console noting this error: Uncaught
Here's the question in brief: My blog posts at... http://www.seanbradley.biz/blog ...totally lacks formatting. They're
hi there i'm working on a project about compiling kernel. However, i'm facing with
Intro: I've seen lots of topics here on SO about software testing and other
I'm using Pusher to add real-time page updates to my Rails app. Here's a
Random numbers have been well covered here, so I'll keep it brief. I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.