Skip to content

Commit

Permalink
Enable long paths on GenerateResource task
Browse files Browse the repository at this point in the history
  • Loading branch information
ccastanedaucf committed Dec 3, 2018
1 parent 83a9483 commit a836f05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Tasks/GenerateResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2866,6 +2866,11 @@ e is SerializationException ||
/// <returns>The current path or a shorter one.</returns>
private string EnsurePathIsShortEnough(string currentOutputFile, string currentOutputFileNoPath, string outputDirectory, string cultureName)
{
if (!NativeMethodsShared.HasMaxPath)
{
return Path.GetFullPath(currentOutputFile);
}

// File names >= 260 characters won't work. File names of exactly 259 characters are odd though.
// They seem to work with Notepad and Windows Explorer, but not with MakePri. They don't work
// reliably with cmd's dir command either (depending on whether you use absolute or relative paths
Expand Down

0 comments on commit a836f05

Please sign in to comment.