MSBuild Multi-Proc

4

Has anyone ever used MSBuild Multi-Proc? I'm trying to use it here, but I end up getting the following error:

  

C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Microsoft.Common.targets    (3390): Unable to copy file "obj \ Release \ dbShared.dll"    to "f: \ Build \ 10 \ TI \ folder \ src \ Components \ bin \ dbShared.dll". Access to the path 'f: \ Build \ 10 \ TI \ folder \ src \ Components \ bin \ dbShared.dll'    is denied.

I tried several MSBuild parameters but I did not succeed.

If someone can help me with this, I'll be grateful.

PS: I'm using TFS 2012

    
asked by anonymous 22.05.2014 / 14:08

1 answer

3

Is the process running MSBuild allowed to write to this path? Try running as administrator and see the result.

Another reason might be that there are two projects trying to write the same file to the same path. Try running MSBuild with / p: BuildInParallel = false and see if the error persists.

Note: If they are duplicate copies during the build, this is a good guide to finding and resolving the situation.

    
22.05.2014 / 14:17