mono

Gstreamer-sharp running on Linux

不问归期 提交于 2019-12-23 05:40:10
问题 since I'm currently working on a gstreamer binding for my project and got the information, that gstreamer-sharp 0.99.x is only working with glib-sharp 2.99.x, I thought it a good idea to create a test project. So I downloaded the addin for monodevelop named "GTK# 3 Simple Project Template" and compiled it -> worked. Now I added the gstreamer-sharp 0.99 dll I compiled before and added the following code: Gst.Application.Init(); Element music = Parse.Launch("playbin uri=\"file:////media

Ubuntu14.04配置Mono+Jexus

为君一笑 提交于 2019-12-23 05:32:40
  总所周知,ASP.NET是微软公司的一项技术,是一个网站服务端开发的一种技术,它可以在通过HTTP请求文档时再在Web服务器上动态创建它们,就是所谓动态网站开发,它依赖运行于 IIS 之中的程序 。但是从成本上面来讲,Linux(开源)系统的花费比Windows Server系列少得多。因此,更多的企业愿意采用Linux作为服务器系统。由于ASP.NET依赖于IIS,导致有部分创业型公司在技术选型上会将ASP.NET筛选掉。我们伟大的程序猿,为了能让ASP.NET运行在Linux系统上,Mono就应运而生了,加上Jexus服务器,使得ASP.NET跨平台部署成为现实。   安装配置Mono+Jexus,当前采用的Linux版本是Ubuntu14.04 64位。   一、更新系统       使用指令:sudo apt-get update            sudo apt-get upgrade   二、建立编译环境       使用指令:sudo apt-get install build-essential automake autoconf bison gettext libtool libglib2.0-dev libfreetype6-dev libfontconfig-dev   三、安装依赖库       使用指令:sudo apt-get install

Setting up ModMono With Apache2

孤街浪徒 提交于 2019-12-23 05:14:29
问题 I ended up attempting to setup ASP with ModMono on Apache2, via following this guide. It's not working, however: when I click a .aspx file, I end up just downloading it on my localhost. Here's my asp.webapp file /etc/mono-server2 <apps> <web-application> <name>asp</asp> <vpath>/asp</vpath> <path>/var/www/asp/</path> <vhost>127.0.0.1</vhost> </web-application> </apps> and my asp file in /etc/apache2/sites-available/ <Virtualhost 127.0.1.1:80> ServerName asp DocumentRoot /var/www/asp/

Invoke “internal extern” constructor using reflections

点点圈 提交于 2019-12-23 05:12:32
问题 I have following class (as seen through reflector) public class W : IDisposable { public W(string s); public W(string s, byte[] data); // more constructors [MethodImpl(MethodImplOptions.InternalCall)] internal extern W(string s, int i); public static W Func(string s, int i); } I am trying to call "internal extern" constructor or Func using reflections MethodInfo dynMethod = typeof(W).GetMethod("Func", BindingFlags.Static); object[] argVals = new object[] { "hi", 1 }; dynMethod.Invoke(null,

Compiling Mono from Visual Studio with sgen support

假装没事ソ 提交于 2019-12-23 04:29:49
问题 I have a Mono binary obtained from a build with Visual Studio. The option --gc=sgen used to enable sgen garbage collector is not available: Error: --gc=<NAME> option not supported on this platform. How to enable this option ? Is there any define ? 回答1: The sgen GC will be available on windows starting from the next mono releases, 2.11/2.12 (though not necessarily in the VS build). 来源: https://stackoverflow.com/questions/8214594/compiling-mono-from-visual-studio-with-sgen-support

GTK UI Looks different when running from bundle and when running from Xamarin Studio

假如想象 提交于 2019-12-23 04:24:33
问题 I have C# App using Mono framework and GTK for UI.When i run it from Xamarin Studio it looks like this I have bundled Mono and GTK into a standalone bundle.When running from it it looks different. Which one looks more native to the OSX Platform? If its the first one,then how can i get the same look and feel in the bundled App. 回答1: GTK 2 Theming Options: Use the default system theme Per user theming via ~/.gtkrc Per application theming via GTK api Per application theming via environment var

Trouble installing mod_mono on Mac OSX Lion

落花浮王杯 提交于 2019-12-23 02:20:14
问题 There is another question regarding installing mod_mono on OSX, but I'm going to assume that was before Lion came about, which had some breaking changes for developers (like python versions). I've followed the instructions in the INSTALL readme of mod_mono-2.10. No Avail. Exactly what I've done is this: tar xvfz mod_mono-2.10.tar.gz cd mod_mono-X.Y.Z ./configure --prefix=/usr make make install $ apachectl -t httpd: Syntax error on line 54 of /private/etc/apache2/httpd.conf: Syntax error on

MVC5 Autofac: The view found at was not created

橙三吉。 提交于 2019-12-22 20:02:46
问题 I created very simple MVC 5.0 application that I push to GitHub repository: https://github.com/marxin/mvc-sample. My motivation is to execute app on Linux with mono 3.2.3. I would like to add Autofac NuGet package (more precisely 3.3.0), that works fine for me. Problem is that if I add Autofac.Mvc5 integration package, Razor stops working with following error: System.InvalidOperationException The view found at '~/Views/Home/Index.cshtml' was not created. Description: HTTP 500.Error processing

Compiling mono as static library

我的未来我决定 提交于 2019-12-22 17:46:20
问题 I want to compile libmono as static library at Windows. Target platform is Windows x86. Build environment: Windows 7 64-bit, VC++ Express 2010 What i have already done. 1) Downloaded mono 2.10.8 sources. 2) Opened mono.sln from msvc folder and ensured that everything is compilling. 3) Then i've made some changes: 3.1) General->Project Defaults->Configuration Type: Static library (.lib) 3.2) General->Project Defaults->Use of MFC: Use Standard Windows Libraries 3.3) C/C++->Code Generation-

DNS Refresh Timeout with Mono

好久不见. 提交于 2019-12-22 17:40:41
问题 Although the current Mono project's ServicePointManager class has the DnsRefreshTimeout property enabled into its interface. The related property isn't implemented. Sample call: ServicePointManager.DnsRefreshTimeout = 10*60*1000; // 10 minutes When running my application I get the next exception on runtime: The requested feature is not implemented. (System.NotImplementedException) at System.Net.ServicePointManager.set_DnsRefreshTimeout (Int32 value) [0x00000] in /Developer/MonoTouch/Source