Does the Razor View Engine work for Mono?

Yes, it does. I have it working with mono on Linux. You need mono 2.10.2+ from the stable sources from http://ftp.novell.com/pub/mono/sources-stable/ http://download.mono-project.com/sources/mono/ Then, you need to localcopy these assemblies into your app’s bin directory (you take them from Visual Studio on Windows): System.Web.Mvc.dll System.Web.Razor.dll System.Web.WebPages.dll System.Web.WebPages.Deployment.dll System.Web.WebPages.Razor.dll Then, you might have to get rid of … Read more

How does Mono work

This is an old question (with an already selected answer) but I do not believe the question has really been answered well. First, a little background… How does .NET work? A traditional Windows .EXE file is a binary file that represents a series of machine language instructions that your computer understands and that makes calls … Read more

How to serialize/deserialize to `Dictionary` from custom XML not using XElement?

With the help of a temporary item class public class item { [XmlAttribute] public int id; [XmlAttribute] public string value; } Sample Dictionary: Dictionary<int, string> dict = new Dictionary<int, string>() { {1,”one”}, {2,”two”} }; . XmlSerializer serializer = new XmlSerializer(typeof(item[]), new XmlRootAttribute() { ElementName = “items” }); Serialization serializer.Serialize(stream, dict.Select(kv=>new item(){id = kv.Key,value=kv.Value}).ToArray() ); Deserialization … Read more

NuGet on Linux: Error getting response stream

I was able to get this working by importing the certificates into the machine store and not the user store, which is the default: $ sudo mozroots –import –machine –sync $ sudo certmgr -ssl -m https://go.microsoft.com $ sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net $ sudo certmgr -ssl -m https://nuget.org I verified that before I did this … Read more

Is Roslyn cross platform?

Despite it being the furthest thing from Eric’s mind, Roslyn has been released as true Open Source (Apache 2.0) and is in fact now cross-platform. Miguel de Icaza of Xamarin showed it running on Mono at BUILD. When Roslyn releases, it will become part of Mono. They are already maintaining a branch at the Mono … Read more

Installing Mono 3.x in Ubuntu/Debian

Here is the complete guide for installing mono 3.0.1 For Beginners who don’t know how to get the new Mono 3.0.1 version on Ubuntu 12.04 (Because i’m a beginner and i’ve been working on this for 3 days before making it work) Getting root access to install and configure Mono 3.0.1 sudo -s ***type your … Read more

How to compile a Visual Studio C# Project with Mono

Have you tried xbuild? It’s the MSBuild equivalent on the Mono world. If MSBuild is able to compile your project in Windows, xbuild should be able to do the same on Linux (if it doesn’t, file a bug in Bugzilla). UPDATE: Nowadays, Mono developers/packagers are in the process of bundling the original (and recently opensourced) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)