尝试在Visual Studio(2019)中发布时无法复制文件

问题描述 投票:0回答:1

我正在尝试根据Microsoft's own guide发布C#项目,但是当我尝试执行此操作时,会遇到以下错误(当将构建输出日志级别设置为诊断时。)>

Error: Failed to copy file '[path that is over 260 characters]' to '[path that is under 260 characters]'.
Unable to add '[path that is under 260 characters]' to the Web site.
Unable to add file '[subset of path that is under 260 characters]'.
The system cannot find the path specified.

我已经提取了字面路径,使错误更易于阅读。

这里发生了什么?

我正在尝试根据Microsoft自己的指南发布C#项目,但是当我尝试这样做时,会遇到以下错误(当将构建输出日志级别设置为诊断时)。错误:...

c# visual-studio publishing
1个回答
0
投票

Enabling Windows Long Paths(路径超过260个字符)并重新启动将not

© www.soinside.com 2019 - 2024. All rights reserved.