【发布时间】:2011-08-03 08:24:09
【问题描述】:
我对构建后事件不是很熟悉,所以我对我的程序出了什么问题有点困惑。在 Visual Studio 2010 中编译时,我得到以下信息:
The command "xcopy C:\Users\Me\Path\Foo.bar\Library\dsoframer.ocx C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D
xcopy C:\Users\Me\Path\Foo.bar\ApplicationFiles C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D
xcopy C:\Users\Me\Path\url\ C:\Users\Me\Path\Foo.bar\bin\Debug\ /Y /E /D
rmdir /S /Q C:\Users\Me\Path\Foo.bar\bin\Debug\.gwt-tmp" exited with code 4.
程序似乎运行良好,尽管出现了这个错误,但我不想忽略这个问题,希望不会发生任何不好的事情。奇怪的是,这一行一开始只是一个命令(第一个 xcopy),但随着我继续编译项目(修复其他问题,主要是引用),错误消息越来越大。知道会发生什么吗?
编辑:以下是似乎失败的构建后事件--
xcopy $(ProjectDir)Library\dsoframer.ocx $(TargetDir) /Y /E /D
xcopy $(ProjectDir)ApplicationFiles $(TargetDir) /Y /E /D
xcopy $(SolutionDir)com.myUrl.gwt\www $(TargetDir) /Y /E /D
rmdir /S /Q $(TargetDir).gwt-tmp
【问题讨论】:
-
除了下面的答案,还要确保用
Administrator privileges打开VS。复制到特定位置需要管理员权限。
标签: c# visual-studio-2010 visual-studio-2012 xcopy