简体   繁体   English

ASP.NET文件夹发布错误-无法复制文件

[英]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.

相关问题 发布 ASP.NET Core MVC 2.1 项目时将文件 (geckodriver.exe) 复制到发布文件夹 - Copy file (geckodriver.exe) to publish folder when publishing ASP.NET Core MVC 2.1 project ASP.NET:如何使用命令行在文件夹中发布 - ASP.NET: How to publish in a folder with commandline 无法发布ASP.NET SignalR代码 - Unable to publish an ASP.NET SignalR code 由于“数据库中已存在对象”错误,因此无法将ASP.NET MVC应用程序发布到Azure - Unable to publish ASP.NET MVC application to Azure due to 'there is already an object in the database' error ASP.NET:发布网站不发布资源文件夹 - ASP.NET: Publishing Website doesn't publish Resources folder 当我发布 asp.net mvc 时出现错误无法加载文件或程序集“App_Browsers - Copy”或其依赖项之一 - when i publish asp.net mvc i got error Could not load file or assembly 'App_Browsers - Copy' or one of its dependencies 在 .Net5 中复制 Asp.Net 的 Views 文件夹 - Copy Views folder for Asp.Net in .Net5 ASP.NET 发布错误(指定的路径、文件名或两者都太长) - ASP.NET Publish Error (The specified path, file name, or both are too long) 如何在asp.net中复制文件 - How to copy file in asp.net 上传文件到asp.net中的ftp文件夹 - Upload a file to a ftp folder in asp.net
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM