Mono 2.4 error: ' Feature `generics' is not available in Mono mcs1 compiler. Consider using the `gmcs' compiler instead'
Date : March 29 2020, 07:55 AM
This might help you There should be an 'xsp2' you can run that will use the 2.0 compiler instead of the 1.0 compiler.
|
Mono Compiler as a Service (MCS)
Date : March 29 2020, 07:55 AM
Does that help Ok, I think I have some answers. To resolve the assembly load problem, I can either place a call to Assembly.LoadWithPartialName inside Mono.CSharp.Driver.LoadAssembly, or do the following in my application AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
private static bool isResolving;
static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
if (!isResolving)
{
isResolving = true;
var a = Assembly.LoadWithPartialName(args.Name);
isResolving = false;
return a;
}
return null;
}
/// <summary>
/// Gets or sets a value indicating whether to auto reset when evaluations are performed and create a new assembly.
/// </summary>
/// <value><c>true</c> if [auto reset]; otherwise, <c>false</c>.</value>
public static bool AutoReset { get; set; }
static void Init ()
{
Init (new string [0]);
Reset();
}
static CSharpParser ParseString (ParseMode mode, string input, out bool partial_input)
{
.
.
.
if (AutoReset) Reset ();
|
Microsoft.WindowsAzure.StorageClient.dll problem with Mono compiler
Date : March 29 2020, 07:55 AM
Hope that helps I would assume (based on my experience) that this is tied to the fact that ths storage client references the WCF data services client (System.Data.Client) which isn't avaialble/working on Mono. I've done some work on attempting to get it to compile/work on Mono, but have yet to succeed. You might have more luck than I... source is available at http://odata.codeplex.com (HT @dunnry)
|
C# Compiler-as-a-Service: Mono.CSharp vs Microsoft.CSharp
Tag : chash , By : user181945
Date : March 29 2020, 07:55 AM
Hope this helps Microsoft.CSharp as it's now (.net 4.5) is API used by C# compiler to emit bindings for C# dynamic expressions. Therefore it's C# compiler but very limited. The same API (dll) is implemented by both .NET and Mono so you can compile on .NET and run on Mono and vice-versa. Mono.CSharp is evaluator style API to Mono C# compiler. It allows you to compile any C# text-like code (expressions, statement, type declarations, etc) and execute it. It relies on System.Reflection and System.Reflection.Emit heavily.
|
Can you use Mono/LLVM to generate faster .NET applications than with Microsoft's C# compiler?
Date : March 29 2020, 07:55 AM
|