monodevelop

Compiling C# via Unity3D and MonoDevelop

情到浓时终转凉″ 提交于 2019-12-24 11:36:08
问题 I'm using Unity3D v4.2.2f1, and the version of MonoDevelop it comes bundled with - v2.8.2. I see that there are cases where C# code will compile in Unity3D, but not in MonoDevelop. For instance, default values for method arguments are accepted by Unity3D, but result in "Default parameter settings are not permitted (CS0241)" in MonoDevelop. General advice I've found online is to not attempt to compile from MonoDevelop. Fine - but I'm keen to understand how this mismatch arises. I thought that

MonoDevelop Compilation & GAC

落花浮王杯 提交于 2019-12-24 09:59:55
问题 I'm a bit confused as to what's happening here. My understanding is that when an assembly is required at runtime, the runtime will first try to load the assembly from the executing directory (or the directory where the dependant executable is located). After which it will attempt to find the assembly within the GAC. First of all, I am on Windows. Now, when I'm compiling my solution is VS, everything works fine (as expected), but when I compile the same solution in MonoDevelop, the compilation

NamedPipeServerStream in Mono

好久不见. 提交于 2019-12-24 09:16:10
问题 I am trying to convert C#.Net project into Mono. NamedPipeServerStream & NamedPipeClientStream class are not supporting in Mono and throwing Unhandle exception. Could you please help me anyone? Code: class Program { static string _PipeName = "testPipe"; static void Main(string[] args) { ListenForPipeServer(); } static void ListenForPipeServer() { using (NamedPipeServerStream pipeServer = new NamedPipeServerStream( _PipeName, PipeDirection.InOut, 2, PipeTransmissionMode.Message, PipeOptions

monodevelop 3.0.4.2 on windows and mono.2.10.8 issues with MVC4

穿精又带淫゛_ 提交于 2019-12-24 07:54:56
问题 I'm happily bin deploying an mvc4 beta website with monodevelop to appharbor on my mac and its a nice experience. However I decided to fire up my windows machine and use the same tooling to work on windows and well its not quite as smooth. Debugging using the monosoft debugger I get the following error: System.Net.WebException: The request timed out at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult) [0x00046] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.8\mcs\class\System

DbLinq and Mono 2.4: Working Together?

可紊 提交于 2019-12-24 07:43:32
问题 Hopefully this is a silly question and there's really a simple solution somewhere out there but... Has anybody successfully gotten DbLinq to play nicely with Mono 2.4 on Mac OS X 10.5? I've got my SQLite database ready but for the life of me, I can't find sqlmetal to generate my objects. I'm guessing I might have to download a previous version of Mono that included sqlmetal, build and install it, and then just use the code generated from that version on Mono 2.4...but I'm hoping to avoid it

Using System.Net.HttpRequest::EndGetRequestStream

…衆ロ難τιáo~ 提交于 2019-12-24 06:38:02
问题 I'm using MonoDevelop 3.1.1 and Mono runtime 3.0.12 I'm trying to work with one of Google.Apis samples (Tasks.ETagCollision for example) on that platform, without any success. I fixed all NuGet references so the sample runs, but when I'm trying to create a request to the server using the sample code, I'm getting the following error: Missing method System.Net.HttpWebRequest::EndGetRequestStream(IAsyncResult,TransportContext&) in assembly /Library/Frameworks/Mono.framework/Versions/3.0.12/lib

Use Mono for android on with Mono

佐手、 提交于 2019-12-24 04:37:11
问题 It looks really easy to switch MonoDevelop's compiler to Mono tools instead of .NET – you just need to pick a different framework under settings of the IDE. However, after switching to Mono and getting the project compiling by Mono tools, Mono for android no longer seems to be an available framework (i.e. the reference to it in the Android project turns red). Obviously, the build fails with tons of errors like Android.XXX.YYY is not a class or namespace name, etc. Is there a way to install

Android calendarview font size

非 Y 不嫁゛ 提交于 2019-12-24 04:31:33
问题 I am using xamarin for building android application this is my first app. I have a calendarview I need to change the font size and style of the day. I tried the below code the font color changed but the size is too small. minimum api level 11 target 16. I am using galaxy note 2 for testing <style name="Widget.CalendarView.Custom" parent="@android:style/Widget.CalendarView"> <item name="android:focusedMonthDateColor">@color/gray</item> <item name="android:weekDayTextAppearance">@android:style

Should the Enum values be unique in the global scope?

大城市里の小女人 提交于 2019-12-24 04:03:56
问题 I read in The Fundamentals of Programming course that the enum values should be unique, having the following example: enum color = { red, orange, yellow }; enum fruit = { apple, orange, kiwi}; // error: orange is redefined int kiwi = 42; // error: kiwi is redefined I also found the same idea on this question: Two enums have some elements in common, why does this produce an error? Enum names are in global scope, they need to be unique. I write C# apps in MonoDevelop on Ubuntu 14.10 and I tried

Creating a MonoDevelop application

社会主义新天地 提交于 2019-12-24 01:55:15
问题 I'm trying to create a Mono-for-Android application in MonoDevelop. I'm on Windows 7 64-bit, and my MonoDevelop version is 2.6 Beta 3. When I enter an application name and hit the forward button, it gives me the following errors, File Activity1.cs could not be written. File Resources could not be written. File Properties could not be written. File Assets could not be written. What's the problem? Error details for error 1 System.MissingMethodException: Method not found: 'MonoDevelop.Projects