AlexCuse/SquishIt — Issue #1: Mono Support Broken
Author: AlexCuse
Created: 2011-11-01 00:46:22+00:00
State: open

Code is currently in a good state on windows.

Problems with mono are primarily around FileSystem.ResolveFileSystemPathToAppRelative and testing of directory adds.

this was change to method in FileSystem:

public static string ResolveFileSystemPathToAppRelative(string file)
{
var root = HttpContext.Current != null
? new Uri(HttpContext.Current.Request.PhysicalApplicationPath)
: new Uri(Environment.CurrentDirectory);
var path = root.MakeRelativeUri(new Uri(file, UriKind.RelativeOrAbsolute)).ToString();
if (Unix) { path = path.Substring(path.IndexOf("/") + 1); }
return path;
}

a better way to setup results (preventing the need to create real files/directories) would improve testing for directory add