monodevelop

What are MonoDevelop's .pidb files?

两盒软妹~` 提交于 2019-11-27 17:05:04
问题 MonoDevelop creates those for every project. Should I include them in source control? 回答1: From a MonoDevelop blog post: There were several long time pending bug reports, and I also wanted to improve a bit the performance and memory use. MonoDevelop creates a Parser Information Database (pidb) file for each assembly or project. This file contains all the information about classes implemented in an assembly, together with documentation pulled from Monodoc. A pidb file has trhee sections: the

MonoDevelop: is it possible to switch PCL's compiler?

左心房为你撑大大i 提交于 2019-11-27 16:21:09
问题 We are starting a cross-platform project to be deployed to Android and iOS. Obviously, a lot of code is to be shared between the two, and some of the code relies heavily on the .NET framework items, like sqlite-net library does. The best way (afaik) to share the code between 2 projects is to use a PCL – this way it is possible to reference the project with shared code from both iOS and Android projects in a solution and have everything re-compiled and linked in a nice manner. However, a PCL

Code sharing between MonoTouch and MonoForAndroid

无人久伴 提交于 2019-11-27 12:08:07
问题 What would be the best practice to share busines logic c# code between MonoTouch and Mono For Android projects? Edited: Initially, my question was about the physical file sharing: What do you propose to use: network file sharing or some code version control (git, svn)? In my case I am using two workstations - Mac (MonoDevelop with MonoTouch) and PC (Visual Studio with MonoDroid). What about Solution/Project folder structure? In "Blog Post: Xamarin Mobile World Congress 2012 Unofficial

SmtpClient with Gmail

安稳与你 提交于 2019-11-27 11:55:12
I'm developing a mail client for a school project. I have managed to send e-mails using the SmtpClient in C#. This works perfectly with any server but it doesn't work with Gmail. I believe it's because of Google using TLS. I have tried setting EnableSsl to true on the SmtpClient but this doesn't make a difference. This is the code I am using to create the SmtpClient and send an e-mail. this.client = new SmtpClient("smtp.gmail.com", 587); this.client.EnableSsl = true; this.client.UseDefaultCredentials = false; this.client.Credentials = new NetworkCredential("username", "password"); try { //

External Terminal / Debug outside the IDE

こ雲淡風輕ζ 提交于 2019-11-27 09:46:26
I'm starting to use Xamarin Studio, and migrating from VS to it, but when I try to run a console application (the unique one loaded at the moment), fails and throws an exception in Console.Clear() (Supposing I can't do that in an integrated debugger), then i thought that one way to solve it was by compiling it and running it, like Visual Studio does, and Debug the application outside the IDE, but I can't figure out how. Could someone tell me how to solve this problem? Thanks. EDIT: For any reason, it runs in the embedded window when selecting Release, but it can't read input, so it gets stuck.

Install Mono and Monodevelop on CentOS 5.x/6.x

China☆狼群 提交于 2019-11-27 07:54:21
I am trying to install Mono and Monodevelop on a CentOS 5.9 environment. I have tried the following instructions, with no luck. http://fealves78.blogspot.co.uk/2012/08/install-mono-and-monodevelop-on-centos.html Can anyone suggest an alternative to the the above link. Justin On these systems, I typically install Mono from source. It is a bit more work but you do not have to rely on dated or broken packages that may or may not be maintained. Also, it makes it easy to upgrade to the latest versions of Mono. The instructions below were tested on CentOS 6.4. Head over to /usr/src as root su cd

Reading console input in MonoDevelop

狂风中的少年 提交于 2019-11-27 03:10:05
问题 I am trying to a simple C# program that takes input and passes it as output. For instance, the output should be: What is your name? {user input} Your name is {user input} The program is: public static void Main(string[] args) { Console.WriteLine("What is your name?"); string name = Console.ReadLine(); Console.WriteLine("Your name is: " + name); Console.ReadKey(); } This is enclosed in a class called 'MainClass' Its output is: What is your name? Your name is: Why is this not working and how

How to fix “OutOfMemoryError: java heap space” while compiling MonoDroid App in MonoDevelop

十年热恋 提交于 2019-11-27 02:49:53
问题 When I try to compile (not execute) one of my projects, I recently get the following error: Tool /usr/bin/java execution started with arguments: -jar /Applications/android-sdk-mac_x86/platform-tools/lib/dx.jar --no-strict --dex --output=obj/Debug/android/bin/classes.dex obj/Debug/android/bin/classes /Developer/MonoAndroid/usr/lib/mandroid/platforms/android-8/mono.android.jar FlurryAnalytics/Jars/FlurryAgent.jar Jars/android-support-v4.jar UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError

How to build gstreamer-sharp with monodevelop/xamarin?

为君一笑 提交于 2019-11-27 02:33:21
问题 i'm developer of AudioCuesheetEditor, an application for editing audio cuesheets. The new Version should be able to play back sound, so I would like to use gstreamer as backend. I investigated a bit in gstreamer and found out, that I need to use version 1.x with gstreamer-sharp 0.99.x binding. No problem, downloaded gstreamer-sharp 0.99.0, opened the solution with monodevelop (on linux) or xamarin (on windows) and tried to build the dll, but that didn't work. I get the error "namespace Gst

How to add a custom view to a XIB file defined view in monotouch

南楼画角 提交于 2019-11-27 02:20:19
问题 I'm trying to learn monotouch at the moment, and following the learn monotouch book by Mike BlueStein. Not a bad book, but it's slightly outdated since xcode 4 (i believe) and a newer version on monotouch has come out. Anyways, in my project I have a controller and a xib file. I also have a custom view (e.g. myview : UIView), that overrides the draw method. I want to show my custom view next to or on top of the view defined in the xib file. How do I do this? In the controller, If I override