How can you use Mono’s mcs to compile and run a csproj file?
If you don’t want to use MonoDevelop and want to use the command-line, you can use xbuild. xbuild is the Mono equivalent of MSBuild. xbuild /p:Configuration=Release HelloWorld.csproj
If you don’t want to use MonoDevelop and want to use the command-line, you can use xbuild. xbuild is the Mono equivalent of MSBuild. xbuild /p:Configuration=Release HelloWorld.csproj
I know this is an old thread, but I ran across this while starting to port over an MVC project from VS for windows to VS for Mac. I found a better solution was to delete the reference to System.Web.Entity, and add the NuGet package System.Web.Http.Common. Hope it helps.
Tried the steps mentioned here, did not resolve the error. Had to do change the omnisharp.useGlobalMono option to always. This worked for C# extension for VS Code=1.23.2. Source: Reddit Post Your error output tells me that you’re using the official C# extension for VS Code. The latest version of said extension, 1.23.2, has this to … Read more
Xamarin has stated on several different occasions that they have no plans to support Xamarin Studio on Linux in the short term. The main reasons are: They would have to create a self-contained Mono runtime to go along with the IDE, since different flavors of Linux would ship with different Mono support The cost to … Read more
You’ll have better luck working with Moonlight, which targets the Silverlight API, which is a subset of full WPF. edit: Sure, Silverlight isn’t “intended” for the desktop, but there’s no reason why you can’t embed a silverlight engine in your application. It’s been done before, such as for the Mac NY Times Reader more edit: … Read more
I guess what you would need to do is: In your project options set “Runtime version” to “Mono/.Net 3.5” Add reference to System.Core package (right click references in solution explorer) Add “using System.Linq” to your module after that your code should compile and execute hope this helps, regards
Go here and download fsharp.zip Unzip it and open the created folder Open the terminal and run ./install-mono.sh as root (On some systems, it is necessary to convert the newline characters in that script from CRLF to LF) This will give you the basic functionality which means you will be able to run “mono fsi.exe” … Read more
Update for Linux From the v4.5.2 Release ServiceStack now supports .NET Core which offers significant performance and stability improvements over Mono that’s derived from a shared cross-platform code-base and supported by Microsoft’s well-resourced, active and responsive team. If you’re currently running ServiceStack on Mono, we strongly recommend upgrading to .NET Core to take advantage of … Read more
From the Mono Project’s Guide to Porting Winforms Applications: public static bool IsRunningOnMono () { return Type.GetType (“Mono.Runtime”) != null; } I’m sure you’ll have a lot more questions, so worth checking this guide and the mono-forums
I recently started to dabble in Mono myself and have so far realized that the MonoProject has made huge advancements in this area. It’s well worth it to investigate. With that said, the easiest method is to get setup with a Linux distro that is Mono friendly such as Suse, or Ubuntu. Personally, I tried … Read more