The target "CopyOutOfDateSourceItemsToOutputDirectoryAlways" does not exist in the project.

When I try to debug any project I get this Error:

The target "CopyOutOfDateSourceItemsToOutputDirectoryAlways" does not exist in the project.

When I follow the error it takes me to Microsoft.Common.targets:

================================================================

CopySourceItemsToOutputDirectory

================================================================

-->

<Target

Name="CopySourceItemsToOutputDirectory"

DependsOnTargets="

CreateSourceItemsToCopyToOutputDirectory;

CopyOutOfDateSourceItemsToOutputDirectory;

CopyOutOfDateSourceItemsToOutputDirectoryAlways"/>


I have no idea what this is trying to tell me.  When I first installed Visual C# Express Beta 2 I was able to debug.  It stopped working shortly after.  I can build and run my apps that way.

I have also uninstalled and reinstalled Visual C# Express Beta 2 to no avail.

I'm working on Win 2000 Pro SP4.

Has anyone else seen this or kno whow to fix it   Thanks!



Answer this question

The target "CopyOutOfDateSourceItemsToOutputDirectoryAlways" does not exist in the project.

  • srujan88125

    Hi Faisal, When i build my solution in VS.NET 2005 with Team Architect edition i get the following error, can you please help me resolving this issue. Its bit important for me, 'cause of this i could not able to build my solution.

    Error 2 Unable to copy file "C:\Pfx.NET\Tax\Library\Tasks\Configuration\StateMachines\TotalProcess.xml" to ".\bin\Debug\Configuration\StateMachines\TotalProcess.xml". Access to the path '.\bin\Debug\Configuration\StateMachines\TotalProcess.xml' is denied. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 2532 9 Tasks

    What i did is this is a class library and i added a folder called Configuration\StateMachines in this folder i have a TotalProcess.xml. I have set its properties to copy to output directory - copy if newer. Now there is another Console project in the same solution that referes this library. I want to xml file to be copied to the output directory of the console application. When i did this i get the above mentioned error. Please let me know ASAP.



  • El Gato Grande

    Benedict,

    Is it a possibility that you accidentally edited one of your .targets files in the c:\windows\Microsoft.Net\Framework\v2.0.50215 folder

    I would suggest that you try to make sure that your Microsoft.Common.targets file (especially) and other .targets files have not been recently modified.  It is possible because VS might have opened one of these targets files when there was an error during build.

    Let me know what you find.

    thanks.

    Faisal Mohamood - MSFT
    MSBuild Team

  • The target "CopyOutOfDateSourceItemsToOutputDirectoryAlways" does not exist in the project.