mono

Embedding .Net Runtime

人走茶凉 提交于 2019-12-24 02:06:31
问题 Am I able to embed the .net runtime so that .net is not required on the host operating system? I was looking at doing this with Mono by looking here: http://mono-project.com/Embedding_Mono but seems to allude to using external modules to accomplish this. My goal is to have one single executable with no installed .net runtime. I do not know how this would be configured in my application to compile the native code, link the mono runtime- as well as compile the C# code and link that as well? 回答1

SQLite cannot open database with password encryption

↘锁芯ラ 提交于 2019-12-24 01:22:36
问题 I am handling a Unity project using SQLite. When I open an encrypted database, the following error message shows up: EntryPointNotFoundException: sqlite3_key Mono.Data.Sqlite.SQLite3.SetPassword (System.Byte[] passwordBytes) Mono.Data.Sqlite.SqliteConnection.Open () SQLiteHandler.Start () (at Assets/Script/SQLiteHandler.cs:18) Here is my connection code, neither putting the password into connection string nor using SetPassword work. connString = string.Format("Data Source={0};Version=3

How do I debug a segmentation fault in Mono on Ubuntu without any debugger?

江枫思渺然 提交于 2019-12-24 01:18:32
问题 I have an application that I recently split to run in separate processes that communicate with each other via local sockets. I split it out in hopes of increasing stability, as the core "watcher" process can detect a failure and restart the afflicted sub-process. However, now my watcher process frequently crashes with only the message "Segmentation Fault". I've surrounded all threaded operations in try/catch blocks to try to dump any output, but I still get the same results. I have been

App.config dllmap entry portability

左心房为你撑大大i 提交于 2019-12-24 01:15:53
问题 The dllmap configuration file entry is used in Mono to map requests for windows DLLs to Linux (.so) libraries. But it seems that if Microsoft's .NET framework tries to parse a configuration file with such an entry, an error occurs because it doesn't understand "dllmap". I think everything else in my distribution can be distributed unchanged on both Linux and Windows XP. Of all the portability involved in this, is this configuration entry really the downfall -- the one non-portable piece? Isn

C# Google OAUTH2 using OWIN on Mono results in “System.Web.HttpException (0x80004005): headers have already been sent”

社会主义新天地 提交于 2019-12-24 01:13:16
问题 I've followed a number of tutorials for adding google OAUTH2 authentication to an existing MVC project, but I end up with the same issue involving a 404 to the client and the following trace generated: System.Web.HttpException (0x80004005): headers have already been sent at System.Web.HttpResponse.set_StatusCode (System.Int32 value) [0x00012] in <d31574f4ab6745f49b1626160268508f>:0 at System.Web.HttpResponseWrapper.set_StatusCode (System.Int32 value) [0x00000] in

Mono and WebRequest Speeds - A test

泄露秘密 提交于 2019-12-24 00:23:24
问题 In mono 4.6.2 / linux, I'm noticing huge differences between the speed wget can download files, vs webclient.DownloadString , so I made a little test to investigate. Why is wget significantly faster than C#? From my own experiments, it's faster to swallow the overhead of downloading using wget, reading in the files manually, and finally deleting the downloaded files, than simply using .DownloadString . Am I using the HttpWebRequest incorrectly? Update: On mono/linux, it would seem that using

Performance: Compile in VS, Run in Mono on Windows and Linux

元气小坏坏 提交于 2019-12-24 00:20:49
问题 I have the following questions: Is it possible to compile a C# project using VS.NET, and run it on mono? Are there any performance benefits associated with approach 1 (vs compiling with the mono compiler)? What about running the output .exe/.dll on linux? And what are the associated performance characteristics? Thanks 回答1: Yes, you can do that. It should work unless the code uses some framework elements that are not implemented on mono. Not that I am aware of. Not sure what the difference

Can't get a window handle?

被刻印的时光 ゝ 提交于 2019-12-23 23:09:07
问题 I've searched all over to try and find an answer to my predicament but cannot seem to find a valid answer. I'm trying to write some equivalent user32.dll code with Xlib instead so I can support Linux users. I'm of course running Linux, so I'm using Mono. Problem comes along when I cannot even grab a window handle from the Process class because it was never even implemented: [MonoTODO] [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] [MonitoringDescription ("The

FragmentManager crashes when using Replace

五迷三道 提交于 2019-12-23 21:46:01
问题 I have an Activity and few Fragments. I have to replace fragment in FrameLayout. But when I'm using this function my app crashes. Here is the code of function Android.Support.V4.App.Fragment fragment = null; switch (position) { case 0: fragment = new ScheduleFragment(); break; case 1: fragment = new MainFragment(); break; } if (fragment != null) { Android.Support.V4.App.FragmentManager fragmentManager = SupportFragmentManager; var transaction = fragmentManager.BeginTransaction(); transaction

DevExpress ASP.Net Component on Mono

橙三吉。 提交于 2019-12-23 20:52:38
问题 I'm a happy user of DevExpress components, though currently I'm still on a linux web host. In another thread I've spoken about my plans to move to a Windows environment so that I can use DevExpress's ASP.Net components. For some time now DevExpress's stand has been that their components is not likely to work on Mono, due to heavy usage of P/Invoke. Having no prior experience with their ASP.Net components, my question is, has anyone successfully used their ASP.Net controls under Mono? I've