发布期间出错无法删除目录“ bin \ Debug \ app.publish \ ClickOnce

问题描述

我正在尝试发布我的项目,但是当我这样做时,我得到了一个错误

我在这里看:Error during publish Unable to remove directory "bin\Debug\app.publish\"

我尝试删除“ bin”文件和“ obj”文件,这无济于事 我尝试删除所有项目,然后在新位置再次启动它。

当我尝试发布另一个旧项目时,它会发布新版本。

使用Visual Studio 2019,WPF。

我分享了自己的错误图片:

enter image description here

在文本中添加错误

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   

显示目标位置:

enter image description here

如果需要更多信息,请告诉我。

添加更多信息

我发现,当我在本地计算机上打开一个项目时,它可以将其发布在文件服务器上:\\files\departments\... 但是,当我在文件服务器上打开项目时,会显示此错误。 我必须说,当我在文件服务器中打开项目时,也可以正常工作2年以上 是什么原因造成的?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)