8000
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ILRepack throws unhandled exception when /lib folder ends with a slash #415
System.ArgumentException: Illegal characters in path.
at System.IO.LongPathHelper.Normalize(String path, UInt32 maxPathLength, Boolean checkInvalidCharacters, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetFullPathInternal(String path)
at ILRepacking.RepackOptions.<>c.<Parse>b__191_0(String d) in /_/ILRepack/RepackOptions.cs:line 274
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<DistinctIterator>d__64`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ILRepacking.RepackOptions.Parse() in /_/ILRepack/RepackOptions.cs:line 271
at ILRepacking.RepackOptions..ctor(ICommandLine commandLine, IFile file) in /_/ILRepack/RepackOptions.cs:line 168
at ILRepacking.Application.Main(String[] args) in /_/ILRepack/Application.cs:line 26
But in some automated pipelines, or MSBuild, the path already comes with the ending slash, making things harder.
Ideally ILRepack would catch that exception and just work with or without any number of ending slashes of any type \ or / just like any path in windows, so these should all work:
Activity