visual-studio 错误 PRJ0019:工具从“正在复制 DLL...”返回错误代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1014627/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:40:10  来源:igfitidea点击:

error PRJ0019: A tool returned an error code from "Copying DLL..."

.netc++visual-studio

提问by Jeff Bloom

Visual studio is giving the error PRJ0019: A tool returned an error code from "Copying DLL...".The console window includes the output: 'CopyDLL.cmd' is not recognized as an internal or external command.

Visual Studio 给出错误PRJ0019:工具从“正在复制 DLL...”返回错误代码。控制台窗口包括输出:“CopyDLL.cmd”未被识别为内部或外部命令。

Here is some background as to why I don't know about the tool which is copying. Someone left the company a year ago and forgot to check in their latest version of code for a MS Visual Studio 2008 project using C# and C+_. Now we need to fix the program, but can't find the code and I've been assigned with trying to clean the mess up.

这里有一些关于为什么我不知道正在复制的工具的背景。一年前有人离开了这家公司,但忘记为使用 C# 和 C+_ 的 MS Visual Studio 2008 项目签入他们最新版本的代码。现在我们需要修复程序,但找不到代码,我被指派尝试清理混乱。

回答by Andrew Garrison

You should check the Custom Build Step (Project Properties->Configuration Properties->Custom Build Step) for all of the projects and all of the files.

您应该检查所有项目和所有文件的自定义构建步骤(项目属性-> 配置属性-> 自定义构建步骤)。

It may be easier to open the *.vcproj files in a text editor and check the tags under individual files in the project. Look for any tags that have a non-empty CommandLine attribute.

在文本编辑器中打开 *.vcproj 文件并检查项目中各个文件下的标签可能更容易。查找任何具有非空 CommandLine 属性的标签。

回答by Shea

Turn up the build output with Tools -> Options -> Projects and Solutions -> Build and Run

使用 Tools -> Options -> Projects and Solutions -> Build and Run 打开构建输出

Set MSBuild project build output verbosity to something higher than the default. I'd step it up one level at a time because the highest level is pathologically verbose.

将 MSBuild 项目构建输出详细程度设置为高于默认值。我会一次升级一个级别,因为最高级别在病态上是冗长的。

回答by Owen

Go to Tools->Options->Directories and add this… C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

转到工具->选项->目录并添加这个... C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

That should do the trick...

这应该够了吧...

回答by Tom Bushell

I'd never noticed before, but every time you do a build, there's a line printed to the Output window that says:

我以前从未注意到,但是每次进行构建时,输出窗口中都会打印一行内容:

Build log was saved at "file://...

构建日志保存在“file://...

CTRL-clicking on that link will give a lot more detail about the build that failed.

按住 CTRL 键单击该链接将提供有关失败构建的更多详细信息。

In my case, I found 3 "copy" commands, with the wrong filename, which pointed me to the CommandLine attribute in the vsproj file, as suggested by Andrew Garrison.

就我而言,我发现了 3 个“复制”命令,文件名错误,这将我指向 vsproj 文件中的 CommandLine 属性,正如 Andrew Garrison 所建议的那样。