[英]ASP.NET Folder Publish Error - Unable to copy file
I am trying to publish my web project into a file. 我正在尝试将Web项目发布到文件中。 I get 49 errors while trying to publish, even though it was working well before, this just happened all of a sudden. 尝试发布时遇到了49个错误,尽管之前运行良好,但是这突然发生了。 The error I'm getting is like this below: 我收到的错误如下所示:
Unable to copy file "C:\\Users\\nebib\\Desktop\\www.unifrogtravel.com\\Unifrog Travel ASP.NET Core\\UnifrogTravel-master\\UnifrogTravel-master\\UnifrogBasicDeneme\\wwwroot\\TemplateFiles\\star-1.2\\SCSS HTML\\plugins\\rs-plugin\\js\\jquery.themepunch.revolution.min.js" to "C:\\Users\\nebib\\Desktop\\www.unifrogtravel.com\\Unifrog Travel ASP.NET Core\\UnifrogTravel-master\\UnifrogTravel-master\\UnifrogBasicDeneme\\obj\\Release\\netcoreapp1.1\\PubTmp\\Out\\wwwroot\\TemplateFiles\\star-1.2\\SCSS HTML\\plugins\\rs-plugin\\js\\jquery.themepunch.revolution.min.js". 无法复制文件“ C:\\ Users \\ nebib \\ Desktop \\ www.unifrogtravel.com \\ Unifrog Travel ASP.NET Core \\ UnifrogTravel-master \\ UnifrogTravel-master \\ UnifrogBasicDeneme \\ wwwroot \\ TemplateFiles \\ star-1.2 \\ SCSS HTML \\ plugins \\ rs-plugin \\ js \\ jquery.themepunch.revolution.min.js“到” C:\\ Users \\ nebib \\ Desktop \\ www.unifrogtravel.com \\ Unifrog Travel ASP.NET Core \\ UnifrogTravel-master \\ UnifrogTravel-master \\ UnifrogBasicDeneme \\ obj \\ Release \\ netcoreapp1.1 \\ PubTmp \\ Out \\ wwwroot \\ TemplateFiles \\ star-1.2 \\ SCSS HTML \\ plugins \\ rs-plugin \\ js \\ jquery.themepunch.revolution.min.js”。 The specified path, file name, or both are too long. 指定的路径,文件名或两者都太长。 The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 完全限定的文件名必须少于260个字符,目录名称必须少于248个字符。
Even though I searched for an answer to this problem, I couldn't resolve it. 即使我搜索了此问题的答案,也无法解决。 Any help is appreciated, thanks. 任何帮助表示赞赏,谢谢。
The problem is that the path is too long. 问题是路径太长。 Your message error says "The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." 您的消息错误说: “标准文件名必须少于260个字符,目录名称必须少于248个字符。” Try to copy and/or deploy it to a different folder. 尝试将其复制和/或部署到其他文件夹。 (eg c:\\temp\\myAppSource and c:\\temp\\myAppTarget) (例如c:\\ temp \\ myAppSource和c:\\ temp \\ myAppTarget)
This is actually a very very long path for VS to publish the project. 这实际上是VS发布项目的非常长的路。 Best move the project to a different drive such a D:\\UnifrogTravel-master\\UnifrogBasicDeneme and publish it. 最好将项目移至其他驱动器,例如D:\\ UnifrogTravel-master \\ UnifrogBasicDeneme,然后将其发布。 I'm afraid there is no other work around for this. 恐怕没有其他解决办法了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.