简体   繁体   中英

Service fabric deployment issues

Deployment issues when running the service fabric app. 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.

  1. Moved my repo close to the drive. C:\\Repo
  2. Updated the registry LongPathsEnabled to 1 to allow for long paths.

Error MSB4184 The expression "[System.IO.Path]::GetFullPath(pkg\\Debug\\XYXYXWorkerPackage\\Code\\Agent\\Extensions\\AzureSecurityPack\\.msmanifest)" cannot be evaluated. 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. XYX.ServiceFabric.App C:\\NuGetPackages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.7\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.targets

Not sure if I can tweak to change the deployment path?

I am hoping that you are having problems while deploying the application to Azure.

And if that is the case, try the below options if you haven't already and see if this solves your problem.

Try adding the following line to the first property group of your Windows Azure Visual Studio Project file (*.ccproj):

<ServiceOutputDirectory>C:\Azure\</ServiceOutputDirectory>

Just be careful when you run this. because this folder will be deleted each time you create a package if it exists.

This setting seems to redirect the working folder for the package to a shorter base path, preventing the path too long.

Also take a look at the below blog. Resolving "The Path is too long after being fully qualified" Error Message

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM