mono

.NET/Mono Install Base

点点圈 提交于 2020-01-01 08:26:10
问题 Me and some friends are considering writing a new FOSS project, and the debate is divided between using .NET or something else. So I am wondering if there is an advertised install base for Mono on Linux machines? and, if there known install base of Mono or the Microsoft .Net on windows machines? Thanks. Install Base - A measure of the number of units of a particular type of system actually in use. 回答1: Hanselman gives a stat for .Net Framework Installs. He places it over 90% of PCs . with

HubConnection could not be loaded from SignalR Assembly in Raspberry Pi Mono Project

感情迁移 提交于 2020-01-01 07:16:11
问题 I am trying to build a project in Raspberry Pi which communicates with my Azure server via Signalr. I have used SignalR in .NET client side in a mono project while working on a Xamarin project and was successful. For the test purpose, I have written a small block of code. using System; using Microsoft.AspNet.SignalR.Client; namespace testSignalr1 { class Program { static void Main() { var hubConnection = new HubConnection("******"); var serverHub = hubConnection.CreateHubProxy("HubTest");

In monodroid or monotouch what should I use instead of app.config for configuration strings?

…衆ロ難τιáo~ 提交于 2020-01-01 04:19:20
问题 I want to store development vs production connection strings and configuration strings in a monodroid project. I would normally store it as app settings in a web.config or an app.config, but how should I do it in monodroid and monotouch projects? I would also like for it to switch configurations automatically between debug and release builds just as visual studio does with *.config files. In an iOS app I could store these in a plist but I'd like a cross platform solution in mono. How would I

Debugging C# assembly launched by embedded mono runtime?

删除回忆录丶 提交于 2020-01-01 03:30:06
问题 I am talking about a small game engine using C# for game programming. So, I have a C++ app embedding mono runtime (I call it 'launcher'). And I have an assembly written in C# which is my game engine class library. The launcher launches the assembly as it is suggested in Embedding Mono. And now the interesting part! The launcher implements in C++ miscelaneous functions which are exposed to the mono runtime as internal methods of my game engine classes. That is why my game engine assembly is

Xamarin.Android - does native code compilation make reverse engineering harder?

时光怂恿深爱的人放手 提交于 2020-01-01 02:48:26
问题 We are considering porting our C# .NET application to Android, and I have started reading about Xamarin.Android and the Mono framework. I am just beginning with Android development. I notice on the main http://xamarin.com/android page that it states: Native Code High-performance compiled code with full access to all the native APIs. Does this imply that the generated code will be native code that is more difficult to reverse engineer? We would like to create amongst other things a class

Struggling to understand Xamarin exception handling

ぐ巨炮叔叔 提交于 2020-01-01 02:30:27
问题 I have been crawling the Internet for quite a long time in hope of a solution, and I've come across a number of answers, but none of these seem to achieve what I want. I'm trying to handle exceptions without causing the app to crash. Rather than the app simply exiting, I would rather capture the exception, present the user with a more user-friendly error (perhaps a messagebox warning) and allow them to continue operation in the app. Is it possible to stop the app from bailing out? The way I'm

Should I rewrite GUI with GTK+ instead of WinForms for Mono?

十年热恋 提交于 2020-01-01 02:27:09
问题 I was making an application with Visual Studio, winforms and I'm using openTK. Recently I thought about making it cross-platform. I'm going to use Mono, because I don't know anything else similar. And I have totally no experience with GTK+. In my application, currently there are 4 windows(of course there will be more in future). I want to make application fast in Windows, Linux and OS X. I have read, that GTK+ is better than WinForms, but still not sure which to choose. So, should I remake

cecil: Instruction.Operand types corresponding to Instruction.OpCode.Code value

最后都变了- 提交于 2019-12-31 22:40:14
问题 Is there any documentation or is there a part of the cecil source code that I can consult to get a comprehensive view of which Operand types cecil will use for a given Code value? Eg: I can glean from MethodBodyRocks that Ldloc takes an Operand of type VariableDefinition , but I haven't been able to track down this down for some of the other instruction codes. 回答1: You can look at the definition of every OpCode in the OpCodes.cs file. E.g. for Ldloc you would see OperandType.InlineVar 回答2: To

how to port .NET application to mono

ⅰ亾dé卋堺 提交于 2019-12-31 22:19:12
问题 Since I was not satisfied with my C# application not working on Linux or Mac, I installed MonoDevelop in hopes of porting my application to Mono for cross-platformability. However, I don't know how how to use MonoDevelop to accomplish this task. There's no instructions in FAQ or Documentation. Any idea how to do it? 回答1: From MonoDevelop FAQ: Can I import my Visual Studio 2K5+ project into MonoDevelop? MonoDevelop can open, manipulate and save MSBuild-based projects directly in most cases. In

Searching for the best PCL profile for cross-platform development

一世执手 提交于 2019-12-31 21:34:11
问题 I am working on extending number of supported platforms for my app, it used to support .NET4/Windows Store/Windows Phone, but I hope to also cover Mono for Android and iOS. I've put all business logic, models and view models to portable class libraries (PCL) but it's a big dilemma what subset of platforms I should target. Each combination causes something to fail. Here are the results for 4 platforms that I might use: Profile 78 (NET45+WP8+Store): no problem with TPL,await/async and support