I love the way the web works…a click here…a click there…new discoveries and nuggets of useful information. For example, I’m updating my RSS feeds…looking at those coming from Pluralsight I see their partnership with Rob Howard’s company…I visit the Telligent Systems site and notice that Jason Alexander is now their Chief Solutions Architect…I notice mention of Jason’s leadership in nGallery…and visit the nGallery site…see Jason’s blog…uncover the following advice, which I’m guessing came over some headache (thanks for saving me the same!):
A few things to keep in mind for those of you wanting to be Mono-aware:
Rule #1: Never, ever, ever use the \ to seperate directories when doing any file I/O. Instead, use the System.IO.Path.DirectorySeparatorChar constant. This translates directly over to the *nix world and makes for a smooth transition in Mono.
Rule #2: Just as most of us have learned case sensitivity in .NET, carry this forward to your file I/O operations, again, and make sure all files and directories are case sensitive.
Rule #3: Make sure you don’t compile your assemblies with the /incremental flag. Mono can’t support incremental compilation. For more details on what “incremental compilation” is, see: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscomp/html/vcgrfincrementalenableincrementalcompilation.asp