I am using VS 17.11.5. with net 8. I get this error trying to install the nuget package. I even tried to move the project folder into the root of the hard disk, the error stays.
System.IO.PathTooLongException: Path or file name too long. Complete file name must be less than 260 characters, while the directory name must be less than 248 characters.
in System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath)
in System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
in System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
in NuGet.Packaging.PackageFileExtractor.ExtractPackageFile(String source, String target, Stream stream)
in NuGet.Packaging.PackageArchiveReader.CopyFiles(String destination, IEnumerable1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken token) in NuGet.Packaging.PackageReaderBase.CopyFilesAsync(String destination, IEnumerable1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken cancellationToken)
in NuGet.Packaging.PackageExtractor.<>cDisplayClass5_0.<b__0>d.MoveNext()
I am using VS 17.11.5. with net 8. I get this error trying to install the nuget package. I even tried to move the project folder into the root of the hard disk, the error stays.
System.IO.PathTooLongException: Path or file name too long. Complete file name must be less than 260 characters, while the directory name must be less than 248 characters. in System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) in System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) in System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) in NuGet.Packaging.PackageFileExtractor.ExtractPackageFile(String source, String target, Stream stream) in NuGet.Packaging.PackageArchiveReader.CopyFiles(String destination, IEnumerableb__0>d.MoveNext()
1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken token) in NuGet.Packaging.PackageReaderBase.CopyFilesAsync(String destination, IEnumerable
1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken cancellationToken) in NuGet.Packaging.PackageExtractor.<>cDisplayClass5_0.<