PDA

View Full Version : [SOLVED] Mono library C#



Drenriza
December 9th, 2011, 10:08 AM
Hi all.

Well i find the Mono packages a little confusing so i apologize if this is like some knowledge that all in the programming world know.

If i wan't ONLY to install the Mono packages to allow me to run C# code OR ASP.NET C# code. What packages would i need to install?

I am not intersted in all the packages like the development kit and such.
Only to compile and the runtime.

Thanks on advance to all.
Kind regards.

directhex
December 9th, 2011, 04:06 PM
mono-xsp2 and mono-xsp4 contain the self-hosting ASP.NET app xsp2/xsp4, which will run a site from the current folder. If you want to integrate into Apache or some other web server, there are other things to install.

Beyond that, what you need depends on your code.

Drenriza
December 12th, 2011, 08:47 AM
Hi Directhex.

Your good to make replys on my ASP.NET threads. I really appreciate it.
But can you elaborate on this

Beyond that, what you need depends on your code.

What do you mean with, what i need depends on the code ?

Kind regards.

directhex
December 12th, 2011, 11:02 AM
Hi Directhex.

Your good to make replys on my ASP.NET threads. I really appreciate it.
But can you elaborate on this


What do you mean with, what i need depends on the code ?

Kind regards.

I mean the system is designed to only pull in the bare minimum at any given moment - if you want to run ASP.NET "hello world", you're fine. If you want database access or ASP.NET MVC, you need to install more packages.

Drenriza
December 12th, 2011, 01:00 PM
I mean the system is designed to only pull in the bare minimum at any given moment - if you want to run ASP.NET "hello world", you're fine. If you want database access or ASP.NET MVC, you need to install more packages.

What packages can i choose from? Is their a place that displays the packages available, and when you would need them?

Edit.
To throw it out their. Cant you install all the mono C# library,s for all the different types of code. Database, write to file, and what else their is.
Or else as i asked earlier. If their is a overview of packages versus function of each package, i would LOVE! to know. Thinking .NET 4.0 sorry if i didn't state that earlier.

directhex
December 12th, 2011, 04:19 PM
To throw it out their. Cant you install all the mono C# library,s for all the different types of code. Database, write to file, and what else their is.

Yes. The mono-complete (apt:mono-complete) package installs everything.


Thinking .NET 4.0 sorry if i didn't state that earlier.

Then you need to use Oneiric or higher. Only Oneiric has .NET 4.0 support.

Drenriza
December 12th, 2011, 09:11 PM
Yes. The mono-complete (apt:mono-complete) package installs everything.
Does that also include the mono-development kit? Since im not intersted in that. Only the stuff to run the runtime. Since i use visual studio for the coding.

directhex
December 12th, 2011, 09:34 PM
Does that also include the mono-development kit? Since im not intersted in that. Only the stuff to run the runtime. Since i use visual studio for the coding.

You're using ASP.NET, so there's effectively no difference. You need the compiler installed, in order to compile aspx pages when they're visited.

Drenriza
December 13th, 2011, 08:18 AM
You're using ASP.NET, so there's effectively no difference. You need the compiler installed, in order to compile aspx pages when they're visited.

Okey. So if i download Oneric and install mono-complete, do i then still need to install apache2 to make it run, or does mono-complete contain a web-server?

directhex
December 13th, 2011, 11:04 AM
Okey. So if i download Oneric and install mono-complete, do i then still need to install apache2 to make it run, or does mono-complete contain a web-server?

mono-complete doesn't include any web server. You still need mono-xsp for the standalone server (really easy to use, useful for testing). Apache integration is done with other packages, but I'd recommend making sure your page works fine with XSP first before adding the complexity of apache configuration into the mix

Drenriza
December 13th, 2011, 11:33 AM
mono-complete doesn't include any web server. You still need mono-xsp for the standalone server (really easy to use, useful for testing). Apache integration is done with other packages, but I'd recommend making sure your page works fine with XSP first before adding the complexity of apache configuration into the mix

Thanks for the info directhex.