mono

Including custom dll and dylib in MonoMac app

好久不见. 提交于 2020-01-02 02:55:31
问题 Background: My MonoMac app uses a custom build of sqlite3.0.8.6.dylib. I need the exact steps to have MyApp.app use this dylib. Here are some steps I took: Copied the dylib to MyApp.app/Contents/SharedSupport. (Related question: is this the preferred location for 3rd party dylibs or is MyApp.app/Contents/Frameworks preferred?) Changed the installed name for the library so that it matches its new location. MyApp.app/Contents/SharedSupport> otool -L libsqlite3.0.8.6.dylib libsqlite3.0.8.6.dylib

Could not load type System.Runtime.Versioning.TargetFrameWorkAttribute from assembly

不想你离开。 提交于 2020-01-02 02:11:27
问题 I am trying to compile a program that uses the library Newtonsoft.Json.dll with mono Compile command gmcs Program.cs etcetera.cs -r:Newtonsoft.Json.dll -r:Argotic.Core.dll Result: Missing method .ctor in assembly Newtonsoft.Json.dll, type System.Runtime.Versioning.TargetFrameworkAttribute Can't find custom attr constructor image: Newtonsoft.Json.dll mtoken: 0x0a000053 And then when trying to run the program ( mono Program.exe ) it throws the error: Unhandled Exception: System

Cannot start OpenDebug because Mono (or a Mono version >= 3.10.0) is required

假装没事ソ 提交于 2020-01-02 01:59:07
问题 I have downloaded and install vscode in ubuntu 14.0 lts, and include existing node.js project. First think I have to do with vscode is debugging my app, for that I have go to debug (ctrl+shift+D) penal, configure launch.json file with "name" and "program"="app.js" properties. Put debug point in app.js file and click on run button. Here I am getting error "Cannot start OpenDebug because Mono (or a Mono version >= 3.10.0) is required". How to solve it? 回答1: sudo apt-key adv --keyserver

Mono to SQL Server with Windows Auth

邮差的信 提交于 2020-01-02 01:17:07
问题 Quick... How to use Windows Authentication to SQL Server with the Mono SQL Client running on Windows without a username+ password in the connection string? More... We have to use Mono to support multiple platforms for some components of our app This is an external limitation that we can't change We will run the components that access the database only on Windows The portability/OS-agnostic features of the Mono SQL Client add no value That is, any component running on non-Windows will not

Install pythonnet on Ubuntu 18.04, Python 3.6.7 64-bit, Mono 5.16 fails

≡放荡痞女 提交于 2020-01-01 19:46:05
问题 I would like to install pythonnet on Ubuntu, but it fails. That's what I tried so far: /usr/bin/python3 -m pip install -U pythonnet --user Error: Collection pythonnet Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz Building wheels for collected packages: pythonnet Running setup.py bdist_wheel for pythonnet ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;_

Can't compile Moonlight application in MonoDevelop

时光毁灭记忆、已成空白 提交于 2020-01-01 19:38:10
问题 I am trying to build Moonlight application using MonoDevelop 2.8 and Mono 2.10.5 on Mac OS X but it fails to compile: Error: Framework 'Moonlight / Silverlight 3.0' not installed. (MoonlightTest) 回答1: The Moonlight addin on Mac is somewhat limited. It uses Silverlight to run the apps, since there is no Moonlight plugin for Mac has been released, but it uses the Moonlight SDK assemblies to compile, since the Silverlight SDK assemblies cannot be redistributed. Unfortunately the only SDK package

Mkbundle failed to compile C# application on OS X

坚强是说给别人听的谎言 提交于 2020-01-01 19:18:50
问题 I've been at this for a few days now and whilst I fairly quickly managed to get Mono's mkbundle to create a native executable on Windows and Linux I haven't been able to do the same for OS X. I'm using Mono 3.4.0 as I need .NET 4.5 support and being able to compile for x86_64 on OS X would be nice too. I currently use the following simple bash script to attempt the mkbundle build: #!/bin/bash export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/Library/Frameworks/Mono.framework

mono, c#, sockets, performance

依然范特西╮ 提交于 2020-01-01 14:18:45
问题 I developed simple async server that listens to unix socket and sync client that send the some small piece of data. Time between moment when i send data from client to the moment when server receives them is completly random, from 1 to 9 seconds. I wonder why is the reason? Server is implemented as shown in msdn example here (using beginReceive): http://msdn.microsoft.com/en-us/library/fx6588te.aspx EndPoint ep = new UnixEndPoint(_fileName); _socket = new Socket(AddressFamily.Unix, SocketType

How to target Mono framework from VS2015?

孤街醉人 提交于 2020-01-01 08:33:01
问题 I want to deploy ASP.NET web app on Linux with mono installed. From what I know Mono is a targeting platform similar to .DNX 4.5.1 or .DNX Core 5.0. So I need somehow add it to targeting platforms in my project to compile and debug the project against it. Surprisingly, I didn't managed to find any instructions. I'm creating a new ASP.NET 5/vNext project, and all I see is 4.5.1 and Core 5.0 compile targets. How to add Mono to that list? 回答1: There was some Mono product/Mono for VS that

How to target Mono framework from VS2015?

假装没事ソ 提交于 2020-01-01 08:31:47
问题 I want to deploy ASP.NET web app on Linux with mono installed. From what I know Mono is a targeting platform similar to .DNX 4.5.1 or .DNX Core 5.0. So I need somehow add it to targeting platforms in my project to compile and debug the project against it. Surprisingly, I didn't managed to find any instructions. I'm creating a new ASP.NET 5/vNext project, and all I see is 4.5.1 and Core 5.0 compile targets. How to add Mono to that list? 回答1: There was some Mono product/Mono for VS that