奇怪的错误:无法将临时文件复制到输出目录。 [英] Weird error: Could not copy temporary files to the output directory.

查看:77
本文介绍了奇怪的错误:无法将临时文件复制到输出目录。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含6个C#项目的解决方案; 1个WinForms项目和5个
类库。直到最近我才遇到任何问题。我添加了一个包含报告的新

项目。我正在使用ActiveReports.Net。现在,只要我在
中对类库中的报表进行更改并重新编译,我就会得到这个

错误:无法将临时文件复制到输出目录。 " ;.我必须关闭VS.Net并重新打开它才能重新编译,这非常麻烦。

无论如何,我决定调查以重现问题。我从c:\ InfoForest到c:\ InfoForest2制作了一个确切的解决方案副本。但是现在,我再也不能了解b $ b再现问题!它发生在c:\ OffoForest但不在

InfoForest2上。我可以在c:\ InfoForest2上工作,但是我想在

正确命名的文件夹上工作。我把c:\ _InfoForest移走了,并重新命名为

c:\ OfFovest2为c:\ InfoForest,问题又回来了...... WTF?


在复制或重命名文件夹之前,我完全关闭VS.Net。当项目位于c:\InfoForest ONLY时,我有

问题。任何人都有其他解释而不是幽灵吗?


我使用的是VS.Net 2003和Windows XP SP2,都是英文版。


谢谢!

Etienne

Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5
class libraries. I didn''t have any problems until recently. I added a new
project containing reports. I am using ActiveReports.Net. Now, whenever I
make a change to a report in the class library and recompile, I get this
error: "Could not copy temporary files to the output directory.". I have to
close VS.Net and reopen it in order to recompile, this is very cumbersome.
Anyway, I decided to investigate to reproduce the problem. I made an exact
copy of the solution from c:\InfoForest to c:\InfoForest2. But now, I can''t
reproduce the problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I''d like to be working on a
correctly named folder. I moved c:\InfoForest away and renamed
c:\InfoForest2 as c:\InfoForest, and the problem came back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have any
other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne

推荐答案

On 21/10/2004 Etienne Charland写道:
On 21/10/2004 Etienne Charland wrote:
我有一个包含6个C#项目的解决方案; 1个WinForms项目和5个类库。直到最近我才遇到任何问题。我添加了一个包含报告的新项目。我正在使用ActiveReports.Net。
现在,每当我对类库中的报表进行更改并重新编译时,我都会收到此错误:无法将临时文件复制到
输出目录。我必须关闭VS.Net并重新打开才能重新编译,这非常麻烦。无论如何,我决定调查
来重现问题。我将解决方案的完整副本从
c:\ InfoForest复制到c:\ InfoForest2。但现在,我再也无法重现这个问题!它发生在c:\ InfoForest但不在InfoForest2上。我可以在c:\ InfoForest2上工作,但我想在正确命名的文件夹上工作。我把c:\ _InfoForest移走了,并将c:\ InfoForest2重命名为c:\ InfoForest,问题又回来了......
WTF?

复制之前或重命名文件夹,我完全关闭VS.Net。当项目位于c:\ OffoForest ONLY时,我有问题。除了幽灵之外还有其他任何解释吗?

我使用的是VS.Net 2003和Windows XP SP2,都是英文的。

谢谢!
Etienne
Hi, I have a solution containing 6 C# projects; 1 WinForms project
and 5 class libraries. I didn''t have any problems until recently. I
added a new project containing reports. I am using ActiveReports.Net.
Now, whenever I make a change to a report in the class library and
recompile, I get this error: "Could not copy temporary files to the
output directory.". I have to close VS.Net and reopen it in order to
recompile, this is very cumbersome. Anyway, I decided to investigate
to reproduce the problem. I made an exact copy of the solution from
c:\InfoForest to c:\InfoForest2. But now, I can''t reproduce the
problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I''d like to be
working on a correctly named folder. I moved c:\InfoForest away and
renamed c:\InfoForest2 as c:\InfoForest, and the problem came back...
WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone
have any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne




有些东西被挂在你的一个DLL中,所以你不能过度写作

it - ''为什么它在另一个目录中没问题,钩子就是

原版。


我在编写shell扩展时发现,经过测试我必须

取消注册,然后关闭资源管理器,然后我可以改变它并重新构建

吧。


在我的情况下,我认为不知何故资源管理器是嫌疑人,也许不是因为它是一个上下文菜单扩展而令人惊讶。


-

Jeff Gaines Damerham Hampshire UK



Something is hooked into one of your DLL''s and so you can''t over write
it - that''s why it''s OK in a different directory, the hook is into the
original.

I found when writing a shell extension that after testing I had to
un-register it, then close Explorer, then I could alter it and re-build
it.

In my case I think that somehow Explorer was the suspect, perhaps not
surprising since it was a context menu extension.

--
Jeff Gaines Damerham Hampshire UK


我没有与Windows进行任何fency交互。它只是一个管理

软件的SQL数据库。


" Jeff Gaines" < WH ********* @ newsgroup.nospam>在消息中写道

news:xn **************** @ news.microsoft.com ...
I do not have any fency interaction with Windows. It is just a management
software in front of a SQL database.

"Jeff Gaines" <wh*********@newsgroup.nospam> wrote in message
news:xn****************@news.microsoft.com...
On 21 / 10/2004 Etienne Charland写道:
On 21/10/2004 Etienne Charland wrote:
我有一个包含6个C#项目的解决方案; 1个WinForms项目和5个类库。直到最近我才遇到任何问题。我添加了一个包含报告的新项目。我正在使用ActiveReports.Net。
现在,每当我对类库中的报表进行更改并重新编译时,我都会收到此错误:无法将临时文件复制到
输出目录。我必须关闭VS.Net并重新打开才能重新编译,这非常麻烦。无论如何,我决定调查
来重现问题。我将解决方案的完整副本从
c:\ InfoForest复制到c:\ InfoForest2。但现在,我再也无法重现这个问题!它发生在c:\ InfoForest但不在InfoForest2上。我可以在c:\ InfoForest2上工作,但我想在正确命名的文件夹上工作。我把c:\ _InfoForest移走了,并将c:\ InfoForest2重命名为c:\ InfoForest,问题又回来了......
WTF?

复制之前或重命名文件夹,我完全关闭VS.Net。当项目位于c:\ OffoForest ONLY时,我有问题。除了幽灵之外还有其他任何解释吗?

我使用的是VS.Net 2003和Windows XP SP2,都是英文的。

谢谢!
Etienne
Hi, I have a solution containing 6 C# projects; 1 WinForms project
and 5 class libraries. I didn''t have any problems until recently. I
added a new project containing reports. I am using ActiveReports.Net.
Now, whenever I make a change to a report in the class library and
recompile, I get this error: "Could not copy temporary files to the
output directory.". I have to close VS.Net and reopen it in order to
recompile, this is very cumbersome. Anyway, I decided to investigate
to reproduce the problem. I made an exact copy of the solution from
c:\InfoForest to c:\InfoForest2. But now, I can''t reproduce the
problem anymore!!! It happens on c:\InfoForest but not on
InfoForest2. I could work on c:\InfoForest2, but I''d like to be
working on a correctly named folder. I moved c:\InfoForest away and
renamed c:\InfoForest2 as c:\InfoForest, and the problem came back...
WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone
have any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne



有些东西被挂在你的一个DLL上,所以你不能过度写它 - 这就是为什么它可以在一个不同的目录,钩子是原来的。

我在编写shell扩展时发现,经过测试后我不得不注册它,然后关闭资源管理器,然后我可以改变它并重新构建它。

在我的情况下,我认为不知何故资源管理器是嫌疑人,也许不是令人惊讶的,因为它是一个上下文菜单扩展。 br />
-
Jeff Gaines Damerham Hampshire UK



Something is hooked into one of your DLL''s and so you can''t over write
it - that''s why it''s OK in a different directory, the hook is into the
original.

I found when writing a shell extension that after testing I had to
un-register it, then close Explorer, then I could alter it and re-build
it.

In my case I think that somehow Explorer was the suspect, perhaps not
surprising since it was a context menu extension.

--
Jeff Gaines Damerham Hampshire UK



Hi Etienne


看看项目|属性对话。有一节

" Reference Path"它显示了找到引用的位置。当您重命名

目录时,参考路径不会更改,因此问题就会消失(如另一位受访者暗示的那样)。当你再次重新命名时,问题

重新出现。


检查循环引用,即项目A引用项目B,即

引用了项目C,它引用了项目A.这种事情是允许的,但是可以导致这样的问题。此外,最好(因为VS中的
问题)引用项目,而不是这些

项目的DLL输出。


HTH


Charles

" Etienne Charland" < golden.net上的神秘>在留言中写道

news:vZ ******************** @ b2b2c.ca ...
Hi Etienne

Have a look at the Project | Properties dialogue. There is a section
"Reference Path" that shows where references are found. When you rename a
directory, the reference path is not changed, so the problem goes away (as
another respondent hinted). When you rename back again the problem
re-appears.

Check for circular references, that is Project A references Project B, that
references Project C, that references Project A. This kind of thing is
allowed but can cause such problems. Also, it is preferable (because of a
problem in VS) to reference projects, rather than the DLL output from these
projects.

HTH

Charles
"Etienne Charland" <mystery at golden.net> wrote in message
news:vZ********************@b2b2c.ca...
你好,我有一个包含6个C#项目的解决方案; 1个WinForms项目和5个类库。直到最近我才遇到任何问题。我添加了一个包含报告的新项目。我正在使用ActiveReports.Net。现在,每当我对类库中的报表进行更改并重新编译时,我都会收到此错误:无法将临时文件复制到输出目录。。我已经关闭了VS.Net并重新打开它以便重新编译,这非常麻烦。无论如何,我决定调查重现问题。我从c:\ InfoForest到c:\ InfoForest2制作了解决方案的精确副本。
但是现在,我再也无法重现这个问题了!它发生在
c:\ OffoForest但不在InfoForest2上。我可以在c:\ InfoForest2上工作,但是我想要一个正确命名的文件夹。我把c:\ _InfoForest
移走了,并将c:\ InfoForest2重命名为c:\ InfoForest,问题出现了
返回... WTF?

复制之前或重命名文件夹,我完全关闭VS.Net。当项目位于c:\ OffoForest ONLY时,我有问题。除了幽灵之外,还有其他任何解释吗?

我使用的是VS.Net 2003和Windows XP SP2,全都用英文。

谢谢!
Etienne
Hi, I have a solution containing 6 C# projects; 1 WinForms project and 5
class libraries. I didn''t have any problems until recently. I added a new
project containing reports. I am using ActiveReports.Net. Now, whenever I
make a change to a report in the class library and recompile, I get this
error: "Could not copy temporary files to the output directory.". I have
to close VS.Net and reopen it in order to recompile, this is very
cumbersome. Anyway, I decided to investigate to reproduce the problem. I
made an exact copy of the solution from c:\InfoForest to c:\InfoForest2.
But now, I can''t reproduce the problem anymore!!! It happens on
c:\InfoForest but not on InfoForest2. I could work on c:\InfoForest2, but
I''d like to be working on a correctly named folder. I moved c:\InfoForest
away and renamed c:\InfoForest2 as c:\InfoForest, and the problem came
back... WTF?

Before copying or renaming folders, I completly close VS.Net. I have
problems when the project is located in c:\InfoForest ONLY. Anyone have
any other explanation than ghosts?

I am using VS.Net 2003 and Windows XP SP2, all in english.

Thanks!
Etienne



这篇关于奇怪的错误:无法将临时文件复制到输出目录。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆