Avatar of Cyber-Drugs
Cyber-DrugsFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

C# Setup Project - The "GenerateApplicationManifest" task failed unexpectedly

Hi guys 'n gals,

I have finished making my first C# application, and added a Setup Project to the main Workspace, selected what I want to be included in the setup, and now when I try to compile the Setup I get the following error:


Error      1      The "GenerateApplicationManifest" task failed unexpectedly.
System.IO.PathTooLongException: 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.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolvePath(String path, String[] searchPaths)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolveAssembly(AssemblyReference a, String[] searchPaths)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolveFiles_1(String[] searchPaths)
   at Microsoft.Build.Tasks.GenerateManifestBase.ResolveFiles()
   at Microsoft.Build.Tasks.GenerateManifestBase.BuildManifest()
   at Microsoft.Build.Tasks.GenerateManifestBase.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)      Vehicle Maintenance Manager



My regular project compiled without any errors, it is just my Setup project which is failing... Any ideas on what this could be, and how to fix it?

Cheers guys 'n gals!
C#

Avatar of undefined
Last Comment
Cyber-Drugs
Avatar of DotNetThinker
DotNetThinker
Flag of United States of America image

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. <-- I have a feeling this has something to do with it.
Avatar of Cyber-Drugs
Cyber-Drugs
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Hi DotNetThinker,

I saw that part of the message, but as I explained earlier, my main application compiled fine, so it's just the Setup project failing. Is there a way to get past this without having to physically move my entire project folder to a lower directory path?

Cheers!
There should be a setting where you can define where to put your install file. I think it's in the setup project's properties
Avatar of Cyber-Drugs
Cyber-Drugs
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

I just changed it to C:\Setup\Setup.msi

and it is still giving me that error...
ASKER CERTIFIED SOLUTION
Avatar of Cyber-Drugs
Cyber-Drugs
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo