gmcs

Extending the Mono C# compiler: is there any documentation or precedent?

放肆的年华 提交于 2019-12-12 08:19:54
问题 I am currently involved in some interesting programming language research which has, up until now, centred around extending the upcoming Java 7.0 compiler with some very powerful programmer-productivity-based features. The work should be equally applicable to related programming languages such as C#. I'm currently scoping out the options for prototyping a C# port of the functionality. I would prefer open-source options so that the fruits of this work can be shared with the broadest-possible

Compiling issues with mono and multi-threaded application

别说谁变了你拦得住时间么 提交于 2019-12-11 16:48:10
问题 I am trying to compile a C# app that uses the TPL for linux, using mono. The app was built on windows using VS. i am trying to compile the cs classes via gmcs. However i am getting this error: gmcs Main.cs FileUtil.cs BH.cs BH.cs(6,24): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are you missing an assembly reference? Main.cs(17,24): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are

Extending the Mono C# compiler: is there any documentation or precedent?

前提是你 提交于 2019-12-03 23:32:57
I am currently involved in some interesting programming language research which has, up until now, centred around extending the upcoming Java 7.0 compiler with some very powerful programmer-productivity-based features. The work should be equally applicable to related programming languages such as C#. I'm currently scoping out the options for prototyping a C# port of the functionality. I would prefer open-source options so that the fruits of this work can be shared with the broadest-possible audience. Thus the Mono C# compiler seems to be the most obvious starting point. I'm an experienced C#

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

孤人 提交于 2019-11-29 02:01:30
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 created in MonoDevelop is compiled with gmcs compiler and some of external dependencies fail to be built

Mono .EXE assembly set explorer icon

别来无恙 提交于 2019-11-28 06:53:24
问题 When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use? I have a .ico file to attach to the output exe. The answer must be build-automatable and execute on Linux (w/o wine -- build machine architecture is not x86). GCC and binutils targeting Windows x86 are available. If you give the answer referring to their short (non-cross) names I'll be able to figure out their cross names easily enough. 回答1: Looks like it is done the same way as .Net (learned from

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

Mono Compiler as a Service (MCS)

我的未来我决定 提交于 2019-11-27 08:08:50
I'd like to consume Mono's compiler as a service from my regular .NET 3.5 application. I've downloaded the latest bits (2.6.7), created a simple console application in Visual Studio and referenced the Mono.CSharp dll. Then, in my console app (straight out of a sample online): Evaluator.Run("using System; using System.Linq;"); bool ress; object res; Evaluator.Evaluate( "from x in System.IO.Directory.GetFiles (\"C:\\\") select x;", out res, out ress); foreach (var v in (IEnumerable)res) { Console.Write(v); Console.Write(' '); } This throws an exception at Evaluator.Run (the first line): Illegal

Mono Compiler as a Service (MCS)

谁说胖子不能爱 提交于 2019-11-26 17:45:25
问题 I'd like to consume Mono's compiler as a service from my regular .NET 3.5 application. I've downloaded the latest bits (2.6.7), created a simple console application in Visual Studio and referenced the Mono.CSharp dll. Then, in my console app (straight out of a sample online): Evaluator.Run("using System; using System.Linq;"); bool ress; object res; Evaluator.Evaluate( "from x in System.IO.Directory.GetFiles (\"C:\\\") select x;", out res, out ress); foreach (var v in (IEnumerable)res) {