Coder Social home page Coder Social logo

Comments (8)

PavelA85 avatar PavelA85 commented on August 20, 2024

found solution: http://bcl.codeplex.com/wikipage?title=Long%20Path&referringTitle=Documentation
from this package: https://www.nuget.org/packages/Microsoft.Experimental.IO/
Just use Microsoft.Experimental.IO.LongPathDirectory instead System.IO.Directory in SafeDirectorySearcher class https://github.com/danielpalme/ReportGenerator/blob/1d641f24e1931c1d1e8b16b6afdcb901f975b98b/ReportGenerator/Parser/Preprocessing/FileSearch/SafeDirectorySearcher.cs

from reportgenerator.

PavelA85 avatar PavelA85 commented on August 20, 2024
internal static IEnumerable<string> EnumerateFiles(string path, string searchPattern, SearchOption searchOption)
        {
            try
            {
                var dirFiles = Enumerable.Empty<string>();
                if (searchOption == SearchOption.AllDirectories)
                {
                    dirFiles = LongPathDirectory.EnumerateDirectories(path)
                        .SelectMany(x => EnumerateFiles(x, searchPattern, searchOption));
                }

                return dirFiles.Concat(LongPathDirectory.EnumerateFiles(path, searchPattern));
            }
            catch (UnauthorizedAccessException)
            {
                return Enumerable.Empty<string>();
            }
        }

from reportgenerator.

danielpalme avatar danielpalme commented on August 20, 2024

Thanks for reporting this issue.

I try to solve the problem without LongPathDirectory.
Could you please try this beta and let me know if this works for you or if you get any errors:
https://www.nuget.org/packages/ReportGenerator/2.1.3-beta1

Thanks

from reportgenerator.

danielpalme avatar danielpalme commented on August 20, 2024

Did you have a chance to test the beta? Does it work?

from reportgenerator.

PavelA85 avatar PavelA85 commented on August 20, 2024

Can i have exe install?

On Wed, Mar 11, 2015 at 3:12 PM, Daniel Palme [email protected]
wrote:

Did you have a chance to test the beta? Does it work?


Reply to this email directly or view it on GitHub
#8 (comment)
.

pavel

from reportgenerator.

danielpalme avatar danielpalme commented on August 20, 2024

Please download the beta here: http://1drv.ms/1AnAUtH

from reportgenerator.

PavelA85 avatar PavelA85 commented on August 20, 2024

Thank you,
Nice work, no more crash on super long path.
Waiting for new version!

from reportgenerator.

danielpalme avatar danielpalme commented on August 20, 2024

New release is available!

from reportgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.