【发布时间】:2013-02-11 23:00:29
【问题描述】:
我正在尝试构建我的项目并收到此错误:
Error 148 The command "copy "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\Debug.config" "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\bin\Debug\eFormsApp.exe.config"
copy "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\Debug.config" "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\App.config"" exited with code 1. C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 3397 13 eFormsApp
这是编译器为此复制过程生成的代码:
<Target
Name="PostBuildEvent"
Condition=
"
'$(PostBuildEvent)'!=''
and
(
'$(RunPostBuildEvent)'!='OnOutputUpdated'
or
'$(_AssemblyTimestampBeforeCompile)'!='$(_AssemblyTimestampAfterCompile)'
)
"
DependsOnTargets="$(PostBuildEventDependsOn)">
<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />
</Target>
错误指向这一行:
<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)
我做错了什么?
【问题讨论】:
-
手动运行
copy命令会发生什么? -
我在命令提示符下试了一下,没有问题,只是问我是否要覆盖文件,我说是
-
我忘了提到这个解决方案存储在存储库中
-
文件被标记为只读。