monodevelop

import of VS2012 project to monodevelop failes to compile with “CS1566”

无人久伴 提交于 2019-12-12 12:12:14
问题 I tried to import a Visual Studio 2012 csproj file to Monodevelop. Everything works fine until I compile. When I compile the project, it generates 1 *.resources file for the first form, but for the following forms, no *.resources files are generated and the compile fails with Error reading the resource file ... -- the system can't finde the file (CS1566) (sorry - I had to translate from German) How can I fix that? Regards, Tobias 回答1: I had the same issue, I googled, and I found this link:

File -> Open Website in MonoDevelop?

血红的双手。 提交于 2019-12-12 11:01:04
问题 I cannot open an existing website in MonoDevelop. I have tried various options with no success. Is there any way to do this? Visual Studio has this and it works very well, but I'd like to try out MonoDevelop for my current project. 回答1: MonoDevelop supports Visual Studio's Web Application Projects but not Web Sites . Web Application projects are real MSBuild projects, compiling to a dll. This means you can write unit tests, have more control over the project structure, can catch more errors

Compile for windows on linux using MonoDevelop

梦想与她 提交于 2019-12-12 10:50:25
问题 I want to know, because I can't find anything on google, If I use MonoDevelop to compile an application on Linux, can I send the generated executable to a Windows computer and expect it to run? file outputs this: PE32 executable for MS Windows (console) Intel 80386 32-bit Mono/.Net assembly so I would expect it to run on Windows out-of-the box. But I sent it to a friend for testing, and it said 'this is not a valid win32 application'. So, what do I need to do? It is just a basic hello world

How can I add a reference in monodevelop?

↘锁芯ラ 提交于 2019-12-12 09:29:13
问题 I need to work with Json in mono and I'm using the IDE monodevelop. How can I add as a reference json.net in monodevelop ? 回答1: In your project there should be a folder called References . Right click it and choose edit references . Then check the box next to the package you want to add 回答2: For monodevelop 4.012 try look in the Solution->Packages->Edit Packages and look for the library you need. 来源: https://stackoverflow.com/questions/6438122/how-can-i-add-a-reference-in-monodevelop

Running an gtk# Application made in MonoDev with .Net

痴心易碎 提交于 2019-12-12 03:43:55
问题 Right now I am trying to learn how to use gtk# and Xamarin studio , but after I create the .EXE I cant run it with .NET. I am really new to C# and I have no idea what my program needs to work in .Net , It runs fine in mono but I would just like to see if It could work without mono . When I try to run the Exe from cmd I get this Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libgtk-win 32-2.0-0.dll': The specified procedure could not be found. (Exception from HRESU LT:

Getting programs compiled with MonoDevelop on Linux to work with the GTK# .NET runtime

坚强是说给别人听的谎言 提交于 2019-12-12 03:40:52
问题 Although there is a Windows GTK# run-time installer for .NET I have noticed that GTK# applications compiled using MonoDevelop under Linux (built via SlackBuilds so it is pretty fresh) crash on Windows7 if run via double-clicking, whereas if I build the binary using the same project solution using Xamarin Studio for Windows, running via double-clicking is fine. I'm guessing that the MonoDevelop compiled binary does not include stubs needed to use a non-Mono GTK# install. So: Is it possible to

FluentNhibernate TypeLoadException

大城市里の小女人 提交于 2019-12-12 03:34:44
问题 I'm trying to build a sample MVC3 project using FluentNhibernate, and I'm getting a typeloadexception when I try to create a sessionFactory. SessionFactory //using System; //using NHibernate; //using NHibernate.Cfg; //using FluentNHibernate.Cfg; //using FluentNHibernate.Cfg.Db; //using System.Collections.Generic; //using System.Linq; //using System.Web; //using System.Web.Mvc; public class SessionProvider { public SessionProvider () { } public static ISessionFactory BuildFactory() { return

Getting the number of the phone Xamarin.Android?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:33:12
问题 I found out that this code shared by some users doesn't work in my project. Has anyone a better solution ? TelephonyManager tMgr = (TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); String mPhoneNumber = tMgr.getLine1Number(); I'm getting an error on the getLine1Number() and on the mAppContext 回答1: Your code is for native Android (Java) . Try the below code of Xamarin.Android (c#) . Code: Android.Telephony.TelephonyManager tMgr = (Android.Telephony.TelephonyManager

Undefined symbols when linking PhoneGap static library in MonoTouch

馋奶兔 提交于 2019-12-12 02:39:44
问题 I am working on providing PhoneGap functionality in a UIWebView in MonoTouch. I have tested the functionality in Objective C and the static library works correctly there. However, when I try and link the PhoneGap static library into my MonoTouch application I get a long list of undefined symbols. I have included all the header files for the PhoneGap library and I have also ensured that 'Compile for thumb' is unchecked when compiling the PhoneGap library. So I am not sure what I am missing and

MonoTouch - xib.designer.cs files losing fully qualified paths for UIKit Objects

一笑奈何 提交于 2019-12-12 01:47:51
问题 Any MonoTouch Solution I create has this issue, If I make any change to the project structure (Add a folder, modify a .xib, add a file etc) my project will not build anymore as all of the UIKit objects no longer are full qualified: From this: private MonoTouch.UIKit.UIWindow To: private UIWindow does anybody have any advice? 回答1: This can be fixed by installing Mono 2.10.1, which is now in the MonoDevelop updater. 来源: https://stackoverflow.com/questions/5582622/monotouch-xib-designer-cs-files