Hello
Not sure if this is the right forum but...
I have been working on a project for a while now and have been able to build both debug and release compiles. Suddenly, I cannot build any thing! I get the following error:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2313,9) : error MSB3021: Unable to copy file "obj\Debug\MyProj1.dll" to "bin\Debug\MyProj1.dll". Could not find file 'obj\Debug\MyProj1.dll'.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2313,9) : error MSB3021: Unable to copy file "obj\Debug\MyProj2.exe" to "bin\Debug\MyProj2.exe". Could not find file 'obj\Debug\MyProj2.exe'.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2313,9) : error MSB3021: Unable to copy file "obj\Debug\MyProj3.exe" to "bin\Debug\MyProj4.exe". Could not find file 'obj\Debug\MyProj3.exe'.
I have done several searches on the web and found no solution. Can anyone help
Thanks!

Build Error MSB3021
Jo_
Hi
Please consider this issue closed as I have resolved it by reinstalling my OS etc. I was planning on doing this anyways as the hd I had was way too small (running out of room).
Thanks!
Vomish
mrboldt
Hi,
I also got the same problem, Here is the error info i got.
Task "CreateItem"
Done executing task "CreateItem".
Task "CreateItem" skipped, due to false condition; ('%(_NoneWithTargetPath.CopyToOutputDirectory)'=='Always' or '%(_NoneWithTargetPath.CopyToOu
tputDirectory)'=='PreserveNewest') was evaluated as (''=='Always' or ''=='PreserveNewest').
Target _CopyOutOfDateSourceItemsToOutputDirectory:
Building target "_CopyOutOfDateSourceItemsToOutputDirectory" partially, because some output files are out of date with respect to their input f
iles.
[_SourceItemsToCopyToOutputDirectory: Input=C:\Pfx.NET\Tax\Library\Tasks\Configuration\StateMachines\TotalProcess.xml, Output=.\bin\Debug\Confi
guration\StateMachines\TotalProcess.xml] Input file is newer than output file.
Task "Copy"
Copying file from "C:\Pfx.NET\Tax\Library\Tasks\Configuration\StateMachines\TotalProcess.xml" to ".\bin\Debug\Configuration\StateMachines\Tot
alProcess.xml".
Command:
copy /y "C:\Pfx.NET\Tax\Library\Tasks\Configuration\StateMachines\TotalProcess.xml" ".\bin\Debug\Configuration\StateMachines\TotalProcess.xml
"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2532,9): error MSB3021: Unable to copy file "C:\Pfx.NET\Tax\Library\Ta
sks\Configuration\StateMachines\TotalProcess.xml" to ".\bin\Debug\Configuration\StateMachines\TotalProcess.xml". Access to the path '.\bin\Debug\
Configuration\StateMachines\TotalProcess.xml' is denied.
Done executing task "Copy" -- FAILED.
Done building target "_CopyOutOfDateSourceItemsToOutputDirectory" in project "Tasks.csproj" -- FAILED.
Even i used the Rebuild solution, still i get the same error. My s/w configuration is VS.NET 2005 Team Suite.
Please help me in resolving this issue.
GoldRunner
This error is reported from MSBuild (MSB). The obj directory is a staging directory that the project system of VS uses in order to prevent the locking of assemblies as it builds. Are the names reported (MyProj1.dll, MyProj2.dll...etc.) the correct names for you application What's the structure of your solution Try going to the Build menu and selection "Rebuild Solution" (instead of build), do you get the same errors Can you paste the informaiton that it's in the output window when you do a rebuild here
-Anson