Mono XSP == OSX ASP.net Web Server
xsp2
Listening on address: 0.0.0.0
Root directory: /Users/Ben/SourceControl/iPhoneWebApp101/iWebKit/Base
Listening on port: 8080 (non-secure)
Hit Return to stop the server.
Great for prototyping and rapid development and while I haven't tried it, it should work on Windows equally as well.
Labels: Mono
Mono and File Paths
The joy of developing cross platform applications!!
When dealing with files and paths on a windows based platform you always use a backslash (\) as the path separator, for example 'Config\Settings.xml'. Append the full path onto the beginning and you would be able to load the settings. However, if your application needs to run on top Linux or Mac OS X (Mono) then file paths are slightly different. Instead of 'Config\Settings.xml' you need to use 'Config/Settings.xml'. Notice the all important forward slash (/)! It's a simple mistake to make and it can take a few moments to realise what the problem is.
If you wanted to be really hard core (and correct), you would use Path.DirectorySeparatorChar property to define your separator. Alternatively, you might want to look at IOMap which should solve this mismatch problem for you.
Variations like this is a great reason why you should run your unit\integration tests on both platforms as part of your build.
Labels: Mono





Social networks
Twitter GitHub SlideShare