PRJ0019: A tool returned an error code from....

  • Thread starter Thread starter sarge
  • Start date Start date
S

sarge

error PRJ0019: A tool returned an error code from "Copying assemblies
to target directory..."

I got this when I added a reference to a project. The reference was to
a dll created in another project. Now if I copy the dll itself over to
the new directory it works fine, but I don't like doing this because
if I have to update the dll then I would have to insure I recopy it
over.

Anyone know if there is a setting I am missing.

I did a search on this type of problem. In the thread the poster said
he solved his problem and that it was nonsense. Of course he fails to
mention what it was!
 
(e-mail address removed)-spam.invalid (sarge) wrote in
error PRJ0019: A tool returned an error code from "Copying assemblies
to target directory..."

Check the buildlog.htm file, it will have information about the command
that was running at the time and perhaps even more error messages. This
might give you a clue about where the problem is.
I got this when I added a reference to a project. The reference was to
a dll created in another project. Now if I copy the dll itself over to
the new directory it works fine, but I don't like doing this because
if I have to update the dll then I would have to insure I recopy it
over.

When you add a reference in VS2002/2003, it copies the referenced
assembly to the output folder of your project during a build. It looks
like this is what is failing.
Anyone know if there is a setting I am missing.

One useful thing you can do is to have a common output directory for
both projects. This eliminates a lot of copying and stale versions
during build. In VS2005, we're changing the wizards to automatically use
a common target directory for all projectfs in a solution.

Thanks,
 
Back
Top