mono

Does the mono runtime already handle tail call optimisation as required by the IL spec?

梦想与她 提交于 2019-12-23 20:13:03
问题 I know that by this infamous post http://flyingfrogblog.blogspot.com/2009/01/mono-does-not-support-tail-calls.html the mono runtime did not offer tail call elimination as required by the IL. Has this changed since? 回答1: No, not yet. There's some work-in-progress on adding it, though : http://www.mail-archive.com/mono-devel-list@lists.ximian.com/msg24438.html (wish me luck ;-) ). 来源: https://stackoverflow.com/questions/3816148/does-the-mono-runtime-already-handle-tail-call-optimisation-as

C# MonoGame Help? (Content.Load<Texture2D>(“Invader”);)

久未见 提交于 2019-12-23 19:34:57
问题 I am Making a Space Invaders Game using Open GL in MonoGame and I am trying to load a texture that I have added to the Content folder (It is a PNG file called "Invader") The code that I use is: invader = Content.Load<Texture2D>("Invader"); However when I attempt to run it It says: ContentLoadException was unhandled could not load Invader as a non-content file! 回答1: I am trying to load a texture that I have added to the Content folder (It is a PNG file called "Invader") invader = Content.Load(

Using a custom version of FSharp.Core.dll

夙愿已清 提交于 2019-12-23 19:33:34
问题 I've been poking around with the fsharp compiler source code to try to build a wp7 version of FSharp.Core (FSharp.Core for Windows Phone 7.1 and F# 3.0), and at one point I gave up and started trying to make the portable version work with wp7 instead. I added the FX_NO_STRUCTURAL_EQUALITY define to the portable-net4+sl4+wp71+win8 target framework, which seems to what's causing it to not work at runtime, and tried to replace the FSharp.Core.dll in C:\Program Files (x86)\Reference Assemblies

Mono for Android, reading and writing to XLSX

為{幸葍}努か 提交于 2019-12-23 18:53:26
问题 I am developing an app using Mono for Android. I need capabilities to read and create XLSX (Excel) files. I have tried with EPPlus and NPOI, and had a quick look at Microsoft's Open XML SDK and found the following problems: EPPlus requires the WindowsBase assembly which, AFAIK, i can't use this assembly in Mono NPOI requires System.Drawing, which doesn't seem to work in Mono Open XML SDK requires the WindowsBase assembly. So i am running out of ideas, is there any library that i can run under

System.IO.FileNotFoundException: Could not load assembly System.Web in Mono for Android

风格不统一 提交于 2019-12-23 18:45:58
问题 I'm building an android app with Xamarin that uses SkyDrive .Net API Client but I'm getting the following error when trying to run my android app on the emulator Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile? File name: 'System.Web.dll' at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve (Mono

mono 2.6 and visual studio 10

我是研究僧i 提交于 2019-12-23 18:00:29
问题 When I tried to run a binary (exe file) that was made with Visual Studio 10 from mono 2.6/Mac, I get the following warning. WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 How can I disable this message with mono? Is there a way from Visual Studio not to show this message with mono/Mac? 回答1: Mono 2.6.x does not support the .NET 4.0 runtime version, so it's falling back to the default version, .NET 1.1. I suggest you install Mono 2.8

How do I resolve SecureChannelFailure on OSX with mono

﹥>﹥吖頭↗ 提交于 2019-12-23 17:56:42
问题 I'm trying to access https://geocoder.cit.api.here.com with .NET (F#) on mono. I'm using the Http helper from FSharp.Data using the following code: let baseUrl = "https://geocoder.cit.api.here.com/6.2/geocode.json?searchtext=1701%20McFarland%20Blvd%20E%20Tuscaloosa%09%20AL&app_id=<Some app id>&app_code=<Some app code>" let res = Http.RequestString(baseUrl) Running this for me on OSX Sierra (10.12.2) with mono version 4.6.2 yields a SecureChannelFailure . How do I resolve this? I have tried

Mono / Ubuntu - Conflicting definitions

早过忘川 提交于 2019-12-23 17:33:54
问题 I'm attempting to build a library (Medsphere.Widgets) on Ubuntu, and it's throwing me an error. I've had a good search around, but nobody seems to have an answer for it. The configure script works fine, and completes with no warnings or errors. When I go to run the make, it does this: polynomial@ubuntu:~/Projects/Medsphere/$ make Making all in src make[1]: Entering directory `/home/polynomial/Projects/Medsphere/src' /usr/bin/mcs /target:library /out:Medsphere.Widgets.dll -r:/usr/lib/pkgconfig

Is there a way to use ProGuard with MonoDroid?

两盒软妹~` 提交于 2019-12-23 17:27:47
问题 Our development team just (mostly) finished an Android app using MonoDroid in Visual Studio. Because it has to do with banking, we wanted to try to obfuscate it in order to add some security against anyone trying to decompile it. Initially, I figured I could just use ProGuard, but there doesn't seem to be a project.properties file that I can edit in Visual Studio. Can anyone shine some glorious helping light on this subject and tell me if it is possible to use ProGuard with Mono and my

GUI in C# without Visual Studio

纵然是瞬间 提交于 2019-12-23 17:17:12
问题 Okay, I'm a newbie in C# but I need to create a simple GUI, but I don't have Visual Studio (I use Geany and Mono). The problem is, when I tried the following code that I found by Google: using System; using System.Windows.Forms; using System.ComponentModel; using System.Drawing; public class FirstForm : Form { private Container components; private Label howdyLabel; public FirstForm() { InitializeComponent(); } private void InitializeComponent() { components = new Container (); howdyLabel =