构建执行 nant 失败

发布于 2024-07-12 07:58:39 字数 374 浏览 5 评论 0 原文

我有一个 nant 构建脚本(.86 beta),它告诉我:

构建失败

无法初始化“Microsoft .Net Framework 2.0'目标 框架。

该进程无法访问该文件 'C:\Users\cconway\AppData\Local\Temp\tmp25E3.tmp' 因为它正在被另一个人使用 流程。

这个文件在我的机器上根本不存在。 有谁知道这是什么原因? 重新启动似乎允许我成功运行一次脚本,但此后每次我都会收到此消息(尽管每次重新启动时 tmp 文件的名称都会发生变化)。

谢谢!

I've got a nant build script (.86 beta) and it is telling me this:

BUILD FAILED

Failed to initialize the 'Microsoft
.Net Framework 2.0' target
framework.

The process cannot access the file
'C:\Users\cconway\AppData\Local\Temp\tmp25E3.tmp'
because it is being used by another
process.

This file does not even exist on my machine. Does anyone know the cause of this? Rebooting seems to allow me to run the script once successfully, but every time after that I get this message (though the name of the tmp file changes per reboot).

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

ㄖ落Θ余辉 2024-07-19 07:58:39

是否有任何第三方任务可能会使临时文件保持打开状态或在后台继续运行,从而使文件处于锁定状态?

Are there any third-party tasks which might leave temp files open or keep running in the background, thus leaving file locked?

两个我 2024-07-19 07:58:39

也许尝试 sysinternals 进程监视器 这将允许您查看进程拥有该文件的句柄。

Maybe try sysinternals process monitor which will allow you to see the process which has the handle on this file.

岁月打碎记忆 2024-07-19 07:58:39

另外,请确保您安装了所有正确的 .Net 版本,并且它们是正确的(SDK 与运行时)。 如果您打开 nant 的配置文件,您可以看到它期望 .net 版本的位置,请检查以确保它在那里,并且您可以看到 hte 编译器方法(csc、vbc 等)。 因此,它可能有一些东西试图找到它,但它不在那里或路径已关闭。

它是测试版,因此配置文件中甚至可能存在拼写错误。

Also, make sure that you have all the right versions of .Net installed and they are the correct ones (SDK vs Runtime). If you open the config file for nant you can see where it expects the .net version to be go check to make sure it's there and that you can see hte compiler methods (csc, vbc, etc). So it could have something that is trying to find it but it's not there or the pathing is off.

It is beta so there could even be a typo in the config file.

山色无中 2024-07-19 07:58:39

答案是我的防病毒软件。 我应该先尝试禁用它! 一旦我禁用它,一切都像魅力一样发挥作用。

希望这对某人有帮助。

The answer is my anti-virus. I should have tried disabling that first! Once I disabled it, everything worked like a charm.

Hope this helps someone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文