mono

How to work with multiple .net projects on os x and vs code

≡放荡痞女 提交于 2020-01-03 01:28:06
问题 I am trying to create a typical solution/project layout using vs code. I created the various libraries using yo aspnet , but I don't know how to reference projects in vs code. Do I use a single project.json at the root? How does it know what the startup project and entry point are? Also, is there a way to get intellisense on the namespacing? 回答1: If you don't use Visual Studio (the full version), then you don't need a solution or xproj files. You just use folders and project.json files to

MonoDoc: Installing and adding http://iosapi.xamarin.com/

别说谁变了你拦得住时间么 提交于 2020-01-02 09:42:34
问题 I noticed on a recent video from Miguel that he was accessing MonoDoc with the contents of http://iosapi.xamarin.com Is there an install location for MonoDoc (there doesn't seem to be one at http://www.mono-project.com/Documentation that works) that allows us to add http://iosapi.xamarin.com/ to MonoDoc? Pressing help in MonoDevelop does not seem to open anything. 回答1: I have submitted a bug fix request to Xamarin and will update this when it is completed. 回答2: As per this SO answer, I had to

Reading/writing from named pipes under mono/Linux

爷,独闯天下 提交于 2020-01-02 07:17:32
问题 I would like to read/write from a named pipe/FIFo queue under Linux. I have tried the standard classes StreamWriter and other classes from System.IO, but it fails because it is using seek. Has anyone ever written/read from a named pipe using Mono?. I am managing to read and write - but not the same time... 回答1: You'll need to open separate readers and writers; for some reason, Mono treats FIFOs as if they are seekable (it's a bug), even though they aren't. 来源: https://stackoverflow.com

mono on debian: Could not find file “/srv/www/proj/bin\roslyn\csc.exe”

做~自己de王妃 提交于 2020-01-02 07:09:17
问题 I try to deploy a ASP NET 4.5 Website written in Visual Studio to a Mono Server. System.IO.FileNotFoundException Could not find file "/srv/www/proj/bin\roslyn\csc.exe". Description: HTTP 500.Error processing request. System.IO.FileNotFoundException Could not find file "/srv/www/proj/bin\roslyn\csc.exe". Description: HTTP 500.Error processing request. Details: Non-web exception. Exception origin (name of application or object): mscorlib. Exception stack trace: at System.IO.FileStream..ctor

Xamarin Studio, GTK 2.0 C# application, runtime error, can't load libglib-2.0-0.dll

馋奶兔 提交于 2020-01-02 06:00:12
问题 I've installed fresh Xamarin Studio 5.10 on Windows 7 and created standard GTK 2.0 C# project (via New Project > .Net > GTK#2.0 Project). Code's below: using System; using Gtk; namespace _test { class MainClass { public static void Main (string[] args) { Application.Init (); MainWindow win = new MainWindow (); win.Show (); Application.Run (); } } } Build is ok, but runtime error raises (I've translated error from my native language into english): Can't load DLL "libglib-2.0-0.dll": Procedure

Using NHibernate and Mono.Data.SQLite

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 04:52:12
问题 I read and implemented Trying to using Nhibernate with Mono & SQLite - can't find System.Data.SQLite However, as the last comment there states this seems not to work with NHibernate 3.1 The error is HibernateException: The IDbCommand and IDbConnection implementation in the assembly Mono.Data.Sqlite could not be found. Ensure that the assembly Mono.Data.Sqlite is [...reachable...] I have Mono.Data.Sqlite in the GAC. I have tried both specifying "Mono.Data.Sqlite" as well as typeof(Mono.Data

Redistributable version of FSharp.Core.dll?

最后都变了- 提交于 2020-01-02 04:42:06
问题 I have developed a commercial extension for the Unity3D game engine in F#, it's a piece of code which extends the editor with advanced node/graph editing features. F# is perfect for this due to the nature of immutability and DU's. But, to my question: I realized that the license for the FSharp.Core.dll which comes with Microsoft .NET/Visual Studio probably doesn't allow you to re-distribute it with a commercial project? How would I go about finding out if this is the case or not, and if it's

GTK# .NET Application without requiring separate GTK# Install

房东的猫 提交于 2020-01-02 04:30:11
问题 I was playing around with developing C# apps using MonoDevelop on windows and found that I like using GTK# instead of winforms. However, as far as I could tell so far you cannot just embed the GTK# runtime into the application. The problem is that I would rather not have to require the end users of an app I'm working on to having to install GTK# separately... this is fine for geeks like me, but the app would be for non-geek users and I want the install to pretty much be a one click operation.

Mono not reading values from my app.config?

让人想犯罪 __ 提交于 2020-01-02 04:08:10
问题 I have a standard app.config for a .NET 4.0 Console application created by Visual Studio 2010 when adding settings in the project Settings tab as described on MSDN here: Application Settiings. If I update a setting value in the resulting MyAsseblyName.exe.config file in the same directory then run the exe I see this in code by going: Properties.Settings.Default.MySetting; However, if I do the same (with the same build and same files) running Mono 3.2.8 on Ubuntu 14.04 using the above line

What contraints should I be aware of to maximize portability of Mono code?

送分小仙女□ 提交于 2020-01-02 03:01:08
问题 I'm interested in writing some cross-platform code using Mono, with a view to targeting mobile iOS and Android runtimes. I've perused the Mono and MonoTouch sites, but don't see anything that specifically advises on methods not to use, or Mono hooks which should be avoided. However, that seems a little too good to be true. What limitations should I be aware of going into this project, to ensure maximum portability of the code? 回答1: API wise you get a very similar base class libraries (BCL)