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 9258293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:21:43+00:00 2026-06-18T12:21:43+00:00

I have an ASP.NET Web API project that is bound to a TFS source

  • 0

I have an ASP.NET Web API project that is bound to a TFS source control repository hosted on tfs.visualstudio.com and a continuous integration build (also on tfs.visualstudio.com) which publishes the output to Azure. The CI build triggers properly and the build output is deployed to Azure but I want the deployment to also include XML documentation files as they drive the help page of my Web API project.

After doing some Googling, I found a blog post indicating that I should add the following to my pubxml file:

<PropertyGroup>
    <CopyAllFilesToSingleFolderForMsdeployDependsOn>
        CustomCollectFiles;
        $(CopyAllFilesToSingleFolderForMsdeployDependsOn);
    </CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
<Target Name="CustomCollectFiles">
    <ItemGroup>
        <_CustomFiles Include="bin\**\*.xml" />
        <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
              <DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
        </FilesForPackagingFromProject>
     </ItemGroup>
</Target>

This works if I manually publish from Visual Studio 2012, but does not work when my CI build publishes its output. The CI build does not publish the XML documentation files.

Why would this behave differently on the Team Build server than on my development box?

  • 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-18T12:21:45+00:00Added an answer on June 18, 2026 at 12:21 pm

    According to http://blogs.msdn.com/b/aaronhallberg/archive/2007/06/07/preserving-output-directory-structures-in-orcas-team-build.aspx, your Team Build server uses $(OutDir) to determine where the files should go during your build. On your development box, it usually uses $(OutputPath) from the .proj file.

    $(OutputPath) usually is the bin folder under your project folder; it looks like you’ve pointed at bin (without using the $(OutputPath) variable) for the Include value for your custom files. Experiment instead with using something like $(OutDir)\**\*.xml to get the actual output path at build time, regardless of environment.

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

Sidebar

Related Questions

I have an ASP MVC Web Api project that outputs json using json.net. I
All, I have a ASP.NET Web API project that is making a REST call
The project is an Asp.Net Web API web service. I have a type hierarchy
In my ASP.NET MVC WebApi project I have a Repository (with an Interface) that
I have a ASP.NET MVC Web API controller that returns public IEnumerable<IMessage> Get() It
I am using ninject in an asp.net web api project and have started receiving
I have an ASP.NET Web API (version 4) REST service where I need to
Using the ASP.NET Web-Api, I have the following POST setup in my controller. When
I have the following action in my ASP.NET Web API: public IEnumerable<Car> carssOfUser(int id,
I have a Asp.net WebAPI service that is hosted on AppHarbor which throws 404

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.