View Single Post
Old 09-25-2008, 07:39 AM   #93 (permalink)
karth
Newbie
 
karth's Avatar
 
Join Date: Nov 2003
Posts: 17
Default

I'd like to give some small updates to the existing howto in the first post.
  • A minor modification is to be made in Server/Utility.cs in order to make RunUO2SVN rev. 300 compile on a linux platform running Mono 1.9.1

    Code:
    @ line 1250
    
    #if MONO
                    public static List<TOutput> CastConvertList<TInput, TOutput>( List<TInput> list ) where TInput : class where TOutput : class
                    {
                            return list.ConvertAll<TOutput>( new  Converter<TInput, TOutput>( delegate( TInput value ) { return value as TOutput; } ) );
                    }
    
    #else
                    public static List<TOutput> CastConvertList<TInput, TOutput>( List<TInput> list ) where TOutput : TInput
                    {
                            return list.ConvertAll<TOutput>( new Converter<TInput, TOutput>( delegate( TInput value ) { return (TOutput)value; } ) );
                    }
    
    #endif
    source: http://lists.ximian.com/pipermail/mo...ry/034199.html
  • I don't understand the need of Wine here. Running the server works out of the box with Mono 1.9.1, since it is a native port on .NET. Wine does not have good "original windows .NET" support. Just run the server with
    Code:
    mono runuo.exe

Last edited by karth; 09-25-2008 at 08:57 AM.
karth is offline   Reply With Quote