monodevelop

Is there a way to force MonoDevelop to build/load an assembly?

拈花ヽ惹草 提交于 2019-12-11 06:15:15
问题 I have a MonoTouch application which is managing a list of assemblies. I want developers to be able to modify that list of assemblies as easily as possible. I was hoping that I could just have them add an assembly to the application's references, and that I could then loop through them like this: foreach (AssemblyName assemblyName in this.GetType().GetReferencedAssemblies()) { Assembly assembly = Assembly.Load(assemblyName); //Do something with assembly } The problem that I'm having is that

Can't display multi byte string on MonoDevelop Mac OS X

别等时光非礼了梦想. 提交于 2019-12-11 06:00:01
问题 The problem is following one line code: Console.WriteLine ("あ"); This results in the following output in Application Output window: ? How can I display "あ" instead of "?" in Application Output window. I made sure following things: The source code encoding is UTF-8 I selected Japanese font set "Osaka Regular-Mono" (Preferences > General > Font) Executing the exe from a terminal, "あ" is displayed correctly on terminal window On Ubuntu's MonoDevelop, "あ" is displayed correctly in Application

System.AccessViolationException occurs on TextView.Buffer

可紊 提交于 2019-12-11 04:58:51
问题 I am trying to show some text on C#, one line per second, using Gtk# GUI. the text is on .txt file, and it has 4 integers at every line. but when I compiled it at DragonFly BSD, the first one or two lines are showed perfectly on textbox but the program halts, and I've got SIGABRT and SIGSEGV errors. so I've compiled same code at Windows, and it has this error: Exception of 'System.AccessViolationException' or something like that. I've checked "Allow unsafe codes", but the result was same.

How to move 2D Object with WASD in Unity

爷,独闯天下 提交于 2019-12-11 04:26:19
问题 My code below only works for horizontal movement. Shouldn't the vertical movement be working too? I'm just starting out with basic 2D Unity programming: public class Player : MonoBehaviour { //These fields will be exposed to Unity so the dev can set the parameters there [SerializeField] private float speed = 1f; [SerializeField] private float upY; [SerializeField] private float downY; [SerializeField] private float leftX; [SerializeField] private float rightX; private Transform _transformY;

Starting application in monodevelop vs xsp4

时光总嘲笑我的痴心妄想 提交于 2019-12-11 04:14:43
问题 I build an ASP.Net WebApi project with mono in Linux. When I start (Debug/Release) the Application within Monodevelop. The application runs without errors. Example : I start a (Debug/Release) session. Then I navigate to 127.0.0.1:9000/api/person/ . Then I receive the expected xml output. However, when I execute the xsp4 server from within the "bin" directory. The application starts fine, but when I go to 127.0.0.1:9000/api/person/ . I'm ending with the following exception : Description: HTTP

Mono / MonoDevelop: Get solution version at runtime

北城余情 提交于 2019-12-11 03:43:30
问题 I am looking to retrieve the application version (essentially the <ReleaseVersion> property in the solution file) at runtime. How does one access this via code? 回答1: The standard way of setting the application version in .NET (and therefore presumably MONO) is to use the AssemblyVersion attribute. This is normally specified in the AssemblyInfo.cs file, but can be specified in other files, as is shown below. To get the version at runtime, you can use the AssemblyName.Version property. The

How do I determine what assembly a namespace is in?

五迷三道 提交于 2019-12-11 02:46:36
问题 The MSDN documentation doesn't generally specify the assembly a namespace is in, so there's no easy way to add the necessary assembly reference. NOTE: I am using MonoDevelop, so right-click, resolve is not an option. 回答1: Take a look at this example: http://msdn.microsoft.com/en-us/library/dd321424(VS.100).aspx Task(Of TResult) Class Represents an asynchronous operation that can return a value. Namespace: System.Threading.Tasks Assembly: mscorlib (in mscorlib.dll) Namespaces can cross

Getting servicestack working on monodroid

ぐ巨炮叔叔 提交于 2019-12-11 02:22:40
问题 I'm trying to reference the servicestack dlls in a new monodroid project and I'm getting build errors. I grabbed the dlls from here: https://github.com/ServiceStack/ServiceStack/tree/master/release/latest/MonoDroid And I'm getting the error /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Microsoft.Common.targets: Warning: Found a conflict between : 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'mscorlib, Version=4.0.0.0, Culture=neutral,

learning monodevelop and am having trouble getting a messgae box to appear

断了今生、忘了曾经 提交于 2019-12-11 02:12:12
问题 I am working in monodevelop and learning c#.... I am trying to get a message box to appear but I can't get it to function correctly ... Here is my code: using System; using Gtk; using GtkSharp; public partial class MainWindow : Gtk.Window { public MainWindow () : base(Gtk.WindowType.Toplevel) { Build (); } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; } protected virtual void OnButton11ResizeChecked (object sender, System.EventArgs e)

MonoTouch SIGABRT “Ran out of trampolines of type 2” error

∥☆過路亽.° 提交于 2019-12-11 01:34:43
问题 I get a SIGABRT / ran out of trampolines error when running my MonoTouch app on a native device (iPad). This happens pretty early in my app - I'm constructing a section using MonoTouch.Dialog. ItemTypeRadio = new RootElement ("Type", new RadioGroup (0)) { new Section () { from it in App.ViewModel.ItemTypes select (Element) new RadioElement (it.Name) } }; Is there a compiler setting for increasing the number of trampolines? How do I profile this and find out why my app is running out? Ran out