mono

Using visual studio for developing mono applications

旧时模样 提交于 2020-01-20 17:09:07
问题 How do I use Visual Studio to develop applications on Mono? Is this possible? 回答1: You just build the applications in Visual Studio, and run them under Mono instead of under .NET. The binaries should be compatible... but you'll need to make sure you don't use any libraries which aren't available in Mono - see the Mono Application Compatibility Guidelines. (According to that page, you need to turn off incremental builds in Visual Studio though - a point I wasn't aware of before :) 回答2: See

.NET平台下开源框架

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-20 08:36:15
一、AOP框架 Encase 是C#编写开发的为.NET平台提供的AOP框架。Encase 独特的提供了把方面(aspects)部署到运行时代码,而其它AOP框架依赖配置文件的方式。这种部署方面(aspects)的方法帮助缺少经验的开发人员提高开发效率。 NKalore是一款编程语言,它扩展了C#允许在.net平台使用AOP。NKalore的语法简单、直观,它的编译器是基于Mono C#编译器(MCS)。NKalore目前只能在命令行或#Develop内部使用。NKalore兼容公共语言规范CLS(Common Language Specification),它可以在任何.NET开发环境中使用,包括微软的Visual Studio .NET。 PostSharp读取.NET字节模块,转换成对象模型。让插件分析和转换这个模型并写回到MSIL。PostSharp使开发程序分析应用程序容易得像分析代码规则和设计模式,它使程序开发的思想变革为面向方面软件开发(AOSD/AOD)思想。 AspectDNG的目标是为.NET开发人员提供简单而功能强大的AOP-GAOP实现。它效仿java下的开源工具AspectJ 和 Spoon,成熟程度也很接近它们。 RAIL(Runtime Assembly Instrumentation Library) 开源项目可以在C

Monodroid - passing data to ListView according to GREF limit

血红的双手。 提交于 2020-01-17 02:17:25
问题 C#, Mono for Android. I need to output a large portion of combined data into ListView. To achieve this, I use the following obvious approach with Adapter: class ItemInfo { public string Id; public string Name; public string Description; public int Distance; //Some more data } class ItemAdapter : ArrayAdapter<ItemInfo> { public WorldItemAdapter (Context context, int textViewResourceId, List<WorldItemInfo> items) : base(context, textViewResourceId, items) { } //... public override View GetView

Start Application only once (Mono)

蓝咒 提交于 2020-01-17 01:43:11
问题 I'm currently developing an mono application in c#, which I would like to start only once. I know, this can be achieved with mutex. But how can I bring the application to front using mono? I tried getting the Process via Process.GetProcessByName("AudioCuesheetEditor") but couldn't access the MainWindowHandle. How can I bring the running application to front? Thanks for you answers. EDIT: Now I have been able to get the MainWindowHandle, but it's a IntPtr. How do I bring this handle to front?

Resolve IPv6 address from hostname

浪子不回头ぞ 提交于 2020-01-16 19:09:53
问题 We're updating our socket code to handle the new iOS requirements where you need to be able to connect in an IPv6-only environment. We're currently using .NET sockets and TcpClient. I'm trying to set up a solution where both IPv6 and IPv4 work, but so far nothing's happening. If I use: TcpClient client = new TcpClient(); client.BeginConnect( "server.hostname.com", 8182, this._onConnect, client ); in a IPv6 environment, I get no response; the _onConnect method will never get triggered. If I

Resolve IPv6 address from hostname

心不动则不痛 提交于 2020-01-16 19:09:47
问题 We're updating our socket code to handle the new iOS requirements where you need to be able to connect in an IPv6-only environment. We're currently using .NET sockets and TcpClient. I'm trying to set up a solution where both IPv6 and IPv4 work, but so far nothing's happening. If I use: TcpClient client = new TcpClient(); client.BeginConnect( "server.hostname.com", 8182, this._onConnect, client ); in a IPv6 environment, I get no response; the _onConnect method will never get triggered. If I

How to install msbuild on CentOs

孤街醉人 提交于 2020-01-16 07:45:51
问题 I want to install msbuild on CentOS to run project.sln files. What are the commands for installing the same. I tried to install using "didstopia/msbuild" docker image but could not succeed. 回答1: Install the dotnet sdk for centOS. You will be able to run msbuild files with the command dotnet msbuild or even just dotnet . 来源: https://stackoverflow.com/questions/54735479/how-to-install-msbuild-on-centos

Xamarin: Determine if element in GetSpans() is bold or italic?

家住魔仙堡 提交于 2020-01-16 05:08:15
问题 Native Android Spanned.getSpans(......,SyleSpan.class) function return type StyleSpan[] Xamarin ISpanned.GetSpans(......) function returns type Java.lang.Object[] though it returns <T> ( T = StyleSpan in my case) in native android. Therefore there is a loss of information since the Mono interface doesn't expose what it would have been exposed if I had used the native SDK. Since propery Style ( getStyle() in native android) is only available in StyleSpan there is no way to read that a given

System.Collections.Generic.KeyNotFoundException with Mono, but not Microsoft's .NET

[亡魂溺海] 提交于 2020-01-16 00:57:45
问题 I found a really strange problem while creating unit tests that only occurs with the Mono runtime (Xamarin on Mac included), but runs fine within Visual Studio. I isolated it as far as I could, and I reached a point that I can't tell if it is a bug with Mono, Moq or Castle DinamicProxy, although it only crashes when using the Mono runtime. This is the code: using System; using System.Collections.Generic; using Moq; namespace ConsoleApplication1 { public interface ISomething<T> { List<T>

How to avoid apache to stop responding in MVC application

不羁的心 提交于 2020-01-16 00:44:27
问题 ASP.NET MVC4 application is running using Apache, Mono 3.2.8 and mod_mono in Debian x64 Linux Some times in every month server stops responding: There is also mod_mono control panel and apache server status module istalled. Typing mysite.com , mysite.com/server-status or mysite.com/mono in browser waits forever. top shows that cpu usage is almost zero and there are lot of free memory. There is no special timeout in web.config so every thread should terminated after 110 seconds even if it