gpt4 book ai didi

visual-studio - 错误MSB3073 : copy/d “C:\LOANAPP\UX\UserControls\*.css” “C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\CSS” "exited with code 1

转载 作者:行者123 更新时间:2023-12-04 05:47:25 24 4
gpt4 key购买 nike

我们在以VSS作为源代码控制的Web应用程序解决方案的项目中遇到此错误。该项目在VS 2005项目属性页的预生成事件命令行中有一个脚本-生成事件如下:

copy /d "$(SolutionDir)UX\UserControls\*.ascx" "$(SolutionDir)UX\GetQuotations\ThirdPartyOperator\UserControls"
copy /d "$(SolutionDir)UX\UserControls\*.master" "$(SolutionDir)UX\GetQuotations\ThirdPartyOperator\UserControls"
copy /d "$(SolutionDir)UX\UserControls\*.js" "$(SolutionDir)UX\GetQuotations\ThirdPartyOperator\Javascript"
copy /d "$(SolutionDir)UX\UserControls\*.css" "$(SolutionDir)UX\GetQuotations\ThirdPartyOperator\CSS"

给出以下错误:

================================================== ===========
C:\LOANAPP\UX\UserControls\dhtmlwindow.css
C:\LOANAPP\UX\UserControls\modal.css
2 file(s) copied.
C:\LOANAPP\UX\UserControls\dhtmlwindow.css
**Access is denied.**
C:\LOANAPP\UX\UserControls\modal.css
**Access is denied.**
0 file(s) copied.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(823,9): error MSB3073: copy /d "C:\LOANAPP\UX\UserControls\*.ascx" "C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\UserControls"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(823,9): error MSB3073: copy /d "C:\LOANAPP\UX\UserControls\*.ascx" "C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\UserControls"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(823,9): error MSB3073: copy /d "C:\LOANAPP\UX\UserControls\*.master" "C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\UserControls"
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(823,9): error MSB3073: copy /d "C:\LOANAPP\UX\UserControls\*.js" "C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\Javascript"
**C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(823,9): error MSB3073: copy /d "C:\LOANAPP\UX\UserControls\*.css" "C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\CSS" exited with code 1.**

由于这个错误,我们导致整个解决方案构建失败。

任何人都可以帮助我们,以便我们能够继续...

最佳答案

我目前遇到同样的问题。

在构建解决方案之前删除Release/Debug构建目录可解决一个构建问题。
在此之后进行重建时,尽管如此,还是必须再次进行...

找到一个解决方案时,我会发布一个真正的解决方案...

编辑:
在对问题进行了更多调查之后,我发现解决方案中出现了问题,这是因为构建后步骤中的copy命令导致有关是否覆盖现有文件的问题。这莫名其妙地产生了这个问题。

对我来说,解决方案是将'/y'选项添加到您执行的copy/xcopy命令中,这样就不会出现这些覆盖问题。

关于visual-studio - 错误MSB3073 : copy/d “C:\LOANAPP\UX\UserControls\*.css” “C:\LOANAPP\UX\GetQuotations\ThirdPartyOperator\CSS” "exited with code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6400141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com