如何解决发布期间出错无法删除目录“ bin \ Debug \ app.publish \ ClickOnce
我正在尝试发布我的项目,但是当我这样做时,我得到了一个错误
我在这里看:Error during publish Unable to remove directory "bin\Debug\app.publish\"
我尝试删除“ bin”文件和“ obj”文件,这无济于事 我尝试删除所有项目,然后在新位置再次启动它。
当我尝试发布另一个旧项目时,它会发布新版本。
使用Visual Studio 2019,WPF。
我分享了自己的错误图片:
在文本中添加错误
Severity Code Description Project File Line Suppression State
Error Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.config.deploy' to the Web site. Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy'. The system cannot find the path specified. ChooseParametersFormationSorting 1
Error Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.manifest' to the Web site. Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest'. The system cannot find the path specified. ChooseParametersFormationSorting 1
Error Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.deploy' to the Web site. Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy'. The system cannot find the path specified. ChooseParametersFormationSorting
1
显示目标位置:
如果需要更多信息,请告诉我。
添加更多信息
我发现,当我在本地计算机上打开一个项目时,它可以将其发布在文件服务器上:\\files\departments\...
但是,当我在文件服务器上打开项目时,会显示此错误。
我必须说,当我在文件服务器中打开项目时,也可以正常工作2年以上
是什么原因造成的?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。