forki/FAKE — pull request #47 by matthid (2012-07-28 09:43:42+00:00)
Title: Mono support

This is more like a suggestion pull request.

I did not test these changes very much. But I had to make these changes to make a (my) project build on mono, so I figured to share them.

The first commit did fix a nullreferenceexception in the environment module initialization (TargetPlatformPrefix will be initialized but SystemRoot is null on unix so (SystemRoot @@ @"Microsoft.NET\Framework") throws an exception). Maybe this is not the ideal fix for this...

The secound commit makes sure to convert a path read from a fsproj file (which is a windows path) to a path from the current system. Don't know how to handle absolute paths (I don't think there is a proper way). Most of the time it is not required anyway.

The last commit can be removed, but it was not easy to debug on mono so it was helpful for me.

There were some changes in Samples/Calculator which i discarded... not sure if this was the right thing to do or not.

Sorry but I did not test these changes on top of the latest commit jet but I think they should work (SpecFlow changes).