[Mono-list] Compiling mono* from git

Miljenko Cvjetko mcvjetko at holisticware.net
Sun Jun 23 11:41:18 UTC 2013


Hi Nic

On 2013.06.23 12:09, Nic Wise wrote:
> Hi Mel
>
> Sorry if this is documented somewhere else (if so, I'd love the url),
> but where did you get MVC4 from, to run on Mono?
I'm planning to do howto in next few days or on my holidays in July.

So this is the story: we did several presentations in last month and a 
half on various Croatian
Microsoft DevUGs and I was surprised how small was the knowledge about 
mono in general.

So I decided to show how good mono really is. Did MVC 2 out of the box, 
even XS template.
Then skipped MVC 3 (had no time because of projects) and went directly 
to MVC 4. I gave
myself/ourselves 3 days to try it and did it in 8-9 hours.

Basic steps:

 1. VIsual Studio template for MVC4 application
 2. a bit web.config tweaking
 3. a bit of references tweaking (those that are not yet integrated in
    Mono like EF)
     1. mostly copy local =  true.
 4. there are some issues, but ASP.net swallows exceptions (they are
    there, but not propagated)
     1. some packages (still) write into registry (I'm not sure which
        one, but excpetion is there)
     2. few issues with case sensitivity for css files in
        ~/App_Start/BundleConfig.cs

Additional:

 1. currently we have 3-4 proof of concept projects mobile/desktop + web
    MVC4
    and we have tried even sample with Razor/ASPX rendering in common
    and it
    works.
 2. when I get some time I'd like to test more WebAPI
 3. default register/authentication has SQLServer backend and I haven't
    had enough
    time to remove that
 4. next step would be to exclude dlls from template and move to those
    in Mono GAC
    (less copy loca =  true), but this much more information (rundown
    what is where
    in .net and mono)

>
> I only have a Mac, no windows machine (well, no easy access to them) -
> is there a nice bootstrap around somewhere to use with Xamarin Studio?
We have VS template, but they are different from XS/MD (at least I think 
so), but
it is just folder structure right? You could unzip it and use it as "XS 
template".

We did presentation "2 hrs, 4 man hrs, 8 platforms" where we did small 
app for
pushing images onto server - our version of Instagram/Picasa. In this 
workshop
our Mac guy Ivan/Iki (he was in Your presentation on Evolve 00:50) did MVC2
template and showed that that works, pushed solution to git, I took on 
Windows
side and added MVC4 app, added models, views, controllers and web 
services, pushed
that into git and he could run it on Mac.

I'll upload VS template on our sever and force myself to write howto. is 
that OK?


yes pls try from git:
https://github.com/holisticware/HolisticWare.PR.DevUG.CKVZ.SlideShow/tree/master/2013-06-11/HolisticWare.SlideShow

sample:
HolisticWare.SlideShow.EXE_ASPnetMVC4

rest of the samples might work, but this is our construction site and 
guys are testing and working
on some parts.

regards

mel

>
> Cheers
>
> Nic
>
> On 22 June 2013 15:43, Miljenko Cvjetko <mcvjetko at holisticware.net> wrote:
>> Hi
>>
>> Here is my 2c Ubunut (Debian should be the same) CentOS comes this weekend
>>
>>
>>
>> prep script for Ubuntu (I think debian too)
>>
>> #/bin/bash
>>
>> sudo apt-get -y --fix-missing install \
>> gcc g++ bison gettext make \
>> libtool autoconf \
>> git
>>
>>
>>
>>
>> compile script for Debian/Ubuntu
>>
>> #/bin/bash
>>
>>
>> rm -fr mono/
>> git clone git://github.com/mono/mono.git
>> cd mono
>>
>> # Instead of
>> # ./configure --prefix=/usr
>> # choices
>> # ./configure --prefix=/opt/mono
>> #
>>
>> #./configure --prefix=/usr
>> ./autogen.sh --prefix=/usr
>>
>> make
>> sudo make install
>> mono -V
>>
>>
>>
>>
>>
>> resulting in
>> ASP.net MVC4 in AWS EC2
>> http://mono-aspnet-mvc4-aws.holisticware.org/
>>
>> best regards
>>
>> mel
>>
>>
>>
>> On 2013.06.22 15:56, Nic Wise wrote:
>>> I'm on Ubuntu (slightly different I think? I'm on a Linode)  - I just
>>> followed this:
>>>
>>> http://stackoverflow.com/questions/13365158/installing-mono-3-0
>>>
>>> (second answer down). Only extra thing I needed to do was make sure I
>>> checked out the right tag (mono-3.0.12 now) and loaded libgtk2.0-dev
>>>
>>> apt-get install libgtk2.0-dev
>>>
>>> Works great otherwise
>>>
>>>
>>>
>>> On 22 June 2013 10:41, Trust <tu at tobiasulm.net> wrote:
>>>> Hi *,
>>>>
>>>> i cloned mono from git repo as described.
>>>> My problem is that in mono, or monodevelop or xsp there is no
>>>> configure.sh
>>>> So my question is when i try to compile my own packages on fedora (cause
>>>> the
>>>> packages in fedora a damn old) how to? There are no configure.sh scripts.
>>>> Did i miss something?
>>>>
>>>> Thx and greetings from lower bavaria
>>>>
>>>> Tobi
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://mono.1490590.n4.nabble.com/Compiling-mono-from-git-tp4660003.html
>>>> Sent from the Mono - General mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>>
>>
>> --
>> Miljenko Cvjetko dipl.ing. ET
>>          Direktor/CEO
>>          Projektant rješenja/Solution Architect
>>          Razvojni programer/Senior developer
>>          Voditelj projekta/Project Manager
>>
>> IX južna obala 13
>> Kajzerica Zagreb
>> T: 385 1 7775555
>> M: 385 91 557 447 3
>> F: 385 1 7779556
>> e: mcvjetko at holisticware.net
>> w: http://holisticware.net
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


-- 
Miljenko Cvjetko dipl.ing. ET
	Direktor/CEO
	Projektant rješenja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX južna obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130623/57cec0c5/attachment.html>


More information about the Mono-list mailing list