monodevelop

How to use LINQ in Mono?

旧时模样 提交于 2019-12-02 16:08:33
I can't make System.Linq (aka LINQ to Objects) work. I am running MonoDevelop 2.2.1 in Ubuntu 10 Lucid Lynx with Mono 2.4.4. They advertise in their site that they implemented LINQ, but I can't even find Enumerable.Range or ToArray() . What's wrong? 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 Are you using the gmcs compiler? mcs does not seem

Mono on ARM linux

夙愿已清 提交于 2019-12-02 10:35:02
问题 i've crosscompile Mono for embedded linux on ARM9 processor. But when i try to compile my first c# program "Hello world" i receive this output from Mono: Native stacktrace: Debug info from gdb: ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= Aborted I've

monodevelop helloworld app fail to install

好久不见. 提交于 2019-12-02 10:11:52
I installed "monodevelop" IDE tool, Android SDK and other required tools on my windows xp. I started new sample helloworld project. Builds OK. I run this application and emulator comes up OK. But, I get this error when I deploy the application onto my device emulator. Waiting for packaging processing to complete Getting package list from device Installing shared runtime package on device pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE] 91 KB/s (25866358 bytes in 274.882s) Failed to install shared runtime package I appreciate any help to

C# - How to make programs without IDE/Visual Studio? [closed]

佐手、 提交于 2019-12-02 07:01:24
I am making C# console applications in Notepad++ and MonoDevelop with only a .cs file instead of a solution. I compile the code from CMD. I want to add two classes in my simple "Hacked" program that just simply displays a lot of 0's and 1's. EVERY time I try to make an object reference, I get an error in the compiler saying that I need to make a reference for non-static fields. Making methods static works, but I don't think that every method should be static. So my question is, how do I make object references without an IDE? EDIT: I have found the solution by making the variable static. And I

Linking to a C++ native library in MonoTouch

牧云@^-^@ 提交于 2019-12-02 06:42:20
问题 I am reading up about linking native libraries into MonoTouch, specifically this documentation: http://monotouch.net/Documentation/Linking_Native_Libraries Here it describes linking to C libraries. Is it also possible to link to C++ libraries from MonoTouch? I am very new to MonoTouch and particularly to importing libraries, so I would appreciate any advice about problems I may face trying to import a C++ library, if this is indeed possible. Would wrapping the C++ library in an Objective-C

Override/Implement Members in MonoDevelop

早过忘川 提交于 2019-12-02 05:50:28
I am working through the pluralsight videos on MonoTouch. At one point, the trainer right clicks on the name of a derived class, and in the 'refactor' menu there is a function to override/implement members of that class. When I click however (latest version), I see only 'rename.' The person in this link had the same issue some time ago and has included screenshots - but noone replied to them in the MonoTouch discussion group: http://monotouch.2284126.n4.nabble.com/Right-Click-Class-name-gt-Refactor-gt-Override-Implement-members-tt4655504.html#none Has anyone experienced (and resolved!) this?

How to install the latest version of Mono and MonoDevelop on Ubuntu?

别说谁变了你拦得住时间么 提交于 2019-12-02 04:36:53
I'm trying to install the latest version of the Mono framework and MonoDevelop on my system. Yesterday I tried the installation on Ubuntu (14.04 LTS) and on Debian (V8.2) today. Both installations failed. I used this official installation guide. http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives I executed this commands. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

Configuring the NUnit command line to run MonoTouch tests

此生再无相见时 提交于 2019-12-02 03:25:24
I've got a unit test in my MonoTouch project that I can't run from inside MonoDevelop -- it fails with "Unix transport error." Poking around on the web it looks like that's associated with the NUnit test runner blowing up, so I thought I'd try using the command-line test runner. I used MonoDevelop's "Create Package" to build and package up all the DLLs, and then tried running my tests with nunit-console FooTest.dll . This blows up, but I'm pretty sure it's not for the same reason it blows up inside MonoDevelop. The error message I get is: ** (/Library/Frameworks/Mono.framework/Versions/2.6.7

Mac OSX asking for keychain access when building MonoDevelop iOS App

て烟熏妆下的殇ゞ 提交于 2019-12-01 23:57:03
问题 When building projects in MonoDevelop on the Mac, I get the message "MAC OS X wants to make changes.Type an administrator's name and password to allow this. MAC OSX wants to use system keychain." I found the post Mac OS X wants to use system keychain when compiling the project but this doesn't quite answer my problem. The profiles I installed were done via XCode and are my current/valid profiles on the Provisioning Profile so I assume these are Ok - XCode reports they're valid. I've moved my

Monodevelop on Ubuntu Console.ReadLine doesn't work

旧城冷巷雨未停 提交于 2019-12-01 22:18:48
问题 I'm trying to develop on Mono platform on Ubuntu. But I got trouble on my first application :) Here is the code: using System; using System.Threading; namespace threadings { class MainClass { public static void Main (string[] args) { Console.WriteLine ("The start"); string x=Console.ReadLine(); Console.WriteLine(x); Console.WriteLine ("the end"); } } } And here is the result: The start the end And no any string between them, and no reading from console happens, and I can't input anything.