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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:17:30+00:00 2026-05-27T09:17:30+00:00

I am writing an ASP.NET web application using Visual Studio 2008. The project is

  • 0

I am writing an ASP.NET web application using Visual Studio 2008.
The project is mostly unchanged from the default empty project that Visual Studio provides, except for:

  • In Properties->Build->Output, “XML documentation file” is checked and set to “bin\MyProject.XML”
  • In Properties->Build Events, “Post-build event command line:” is set to copy /y "$(TargetDir)$(TargetName).XML" "C:\TEMP\"

When I build the project for the first time, or rebuild, the build process completes successfully.
If I try to build any time after that, however, the build process fails with this message:

------ Build started: Project: MyProject, Configuration: Debug Any CPU ------
MyProject -> C:\Projects\MyProject\MyProject\bin\MyProject.dll
copy /y "C:\Projects\MyProject\MyProject\bin\MyProject.XML" "C:\TEMP\"
The system cannot find the file specified.
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(3397,13): error MSB3073: The command "copy /y "C:\Projects\MyProject\MyProject\bin\MyProject.XML" "C:\TEMP\"" exited with code 1.
Done building project "MyProject.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

I’m certain that the syntax is correct, because I can perform the post-build command in a command window:

C:\>copy /y "C:\Projects\MyProject\MyProject\bin\MyProject.XML" "C:\TEMP\"
        1 file(s) copied.

The command works when I do it manually, so why does it fail when it is part of the build process?

  • 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-05-27T09:17:31+00:00Added an answer on May 27, 2026 at 9:17 am

    There is a flaw in the underlying msbuild tasks that are used by Visual Studio when the XML documentation file is generated in the same directory as the one specified as the output path, for intermediary builds.

    To fix it, you need to specify a different directory, for example, like this:

    enter image description here

    and change your post-build copy command accordingly, like this:

    copy /y "C:\Projects\MyProject\MyProject\docbin\Debug\MyProject.XML" "C:\TEMP\"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a web application using ASP.NET 2.0 [Visual Studio 2005 Professional Edition].
I am writing web application using ASP.NET MVC + NHibernate + Postres stack. I
I am writing a Web Application in ASP.NET using C#. Whenever I run it,
I'm writing an ASP.NET web application which will run on Windows Server 2008 (IIS7).
I'm writing an ASP.NET 3.5 web application. There is a rather complex input form
Instead of writing my ASP.NET C# applications in Visual Studio, I used my favorite
I am developing a web application using asp.net mvc... I am listing out the
We are developing a web application using asp.net and sql server. We are required
I'm writing a log parser for an asp.net mvc2 web application. I use Entity
I need your advice. I'm writing an ASP.NET web application and I'm considering whether

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.