c#运行显示错误

来源:百度知道 编辑:UC知道 时间:2024/07/02 01:28:29
错误处

<!-- Copy the build product (.dll or .exe). -->
<Copy
SourceFiles="@(IntermediateAssembly)"
DestinationFolder="$(OutDir)"
SkipUnchangedFiles="true">

<Output TaskParameter="DestinationFiles" ItemName="MainAssembly"/>
<Output TaskParameter="DestinationFiles" ItemName="FileWrites"/>

</Copy>

<Message Importance="High" Text="$(MSBuildProjectName) -> @(MainAssembly->'%(FullPath)')" />

显示错误
(什么原因呢?怎么改呢?)
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2314,9): error MSB3021: 无法将文件“obj\Debug\clothes.exe”复制到“bin\Debug\clothes.exe”。文件“bin\Debug\clothes.exe”正由另一进程使用,因此该进程无法访问该文件。

你之前生成的clothes.exe是不是正在运行或者调试中,你可以查看下你的进程管理器,把名为clothes.exe的进程都终止。

你的程序是不是已经打开了啊

因为你已经开启了程序

进程正在运行,不能对起进行修改

所以报错