mono

centos安装nuget

时光怂恿深爱的人放手 提交于 2020-01-15 14:31:10
1 官方文档 dotnet 可代替nuget.exe https://docs.microsoft.com/zh-cn/nuget/install-nuget-client-tools 低版本的nuget 缺少一些参数 2 安装mono https://www.mono-project.com/download/stable/#download-lin-centos 有了mono 可以运行nuget.exe 可以把windows上的nuget.exe拷贝上去 直接运行 安装的版本可能不是最新 下载源码 https://download.mono-project.com/sources/mono/ 解压 tar -xvf mono-6.6.0.161.tar.xz 进入解压目录 执行 ./autogen.sh && make -j8 && make install 3 解决mono 访问https的问题 https://github.com/duplicati/duplicati/wiki/SSL-TLS-support-in-Mono sudo cert-sync /etc/pki/tls/certs/ca-bundle.crt 4 nuget 从配置文件增加包源 nuget sources -configfile /projects/nuget/config/NuGet

NullReferenceException Json.NET Xamarin.Android android 4.3

五迷三道 提交于 2020-01-15 12:48:08
问题 I believe I have just run into this bug https://bugzilla.xamarin.com/show_bug.cgi?id=4902 on my Nexus 4 now that I have updated to android 4.3. Basically, when JSON.NET tries to get the timezone via the mono runtime, we get a null reference exception because there are issues with an environment variable in certain android builds. The same code worked fine before I updated and still works fine on other android devices. Are there any workarounds available for this? Is there anything else I can

What are the first steps for tracking down a exception triggered in the mono asp.net libraries?

我们两清 提交于 2020-01-15 08:25:22
问题 I'm curious if there are any asp.net mono gurus who could give pointers on where to start debugging what may be an error in the mono libraries (perhaps a version mis-match?). I'll start with the details, and then mention what I've found so far. Version information: Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-5ubuntu1); ASP.NET Version: 4.0.30319.1 The stack trace: System.InvalidCastException: Cannot cast from source type to destination type. at System.Web.UI.ScriptManager

Mono mkbundle tool unable to create binary with complaint that output file is unavailable

可紊 提交于 2020-01-15 06:20:13
问题 As per suggestions from this thread on running C# apps sans .NET I've compiled my app using mono. I built the original app using the latest Visual C# .NET Express Edition. It runs fine on .NET on Windows. I then opened up Cygwin and navigated to my source where I compiled the project again, under mono using the following command: $ mcs <myProjectHere>.cs This produces MyProject.exe, which can be run from within Cygwin with success, and can be run from the Window command line successfully.

call monodroid method from javascript example

老子叫甜甜 提交于 2020-01-15 05:25:09
问题 I am looking for an example of how to call a monodroid method (C#) from javascript, using a webview. Something like: javascript: <a href="#" onclick="window.android.callAndroid('Hello from Browser')"> Call Android from JavaScript</a> C# public class LocalBrowser extends Activity { ... private class MyClass { public void callAndroid(final String arg) { textView.setText(arg); } } } Thanks 回答1: This is the example I used to finally solve this for me. Better late than never. Pay close attention

MonoDevelop - using Subversion 1.7 on a Mac

烂漫一生 提交于 2020-01-14 18:05:12
问题 I have homebrew installed, and was able to upgrade subversion to 1.7 using it (and moving /usr/local/bin ahead of /usr/bin in my PATH). So if I type: svn help Subversion command-line client, version 1.7.6. The problem is MonoDevelop doesn't seem to use the svn in the PATH, because svn 1.7 repos don't appear to be versioned in MonoDevelop. I need 1.7 because I also use a VM with Windows and I share repos between the host and guest. On Windows I used TortoiseSVN/AnkhSvn which target subversion

Mono Compatibility with Enterprise Library 4.1

一笑奈何 提交于 2020-01-14 14:26:12
问题 Does anybody using latest enterprise library 4.1 in mono? I used mono migration analyzer to analyze my web application and realized all enterprise library dll is failed in mono. I need to know is that true that enterprise library 4.1 is not compatible in mono 2.4? 回答1: I have an update on this. Enterprise Library 4.0 now Open Source 回答2: I initially played a little with getting EntLib 4.0 to run on Mono: http://jpobst.blogspot.com/2008/10/smart-client-software-factory-on-mono.html I don't

Keep a self hosted servicestack service open as a docker swarm service without using console readline or readkey

你。 提交于 2020-01-14 12:55:09
问题 I have a console application written in C# using servicestack that has the following form: static void Main(string[] args) { //Some service setup code here Console.ReadKey(); } This code works fine when run on windows as a console. The implementation is almost exactly https://github.com/ServiceStack/ServiceStack/wiki/Self-hosting as this is a test project I then compile this project using mono on linux and build into a docker file. I have no problems running up a container based on this image

Keep a self hosted servicestack service open as a docker swarm service without using console readline or readkey

拜拜、爱过 提交于 2020-01-14 12:55:07
问题 I have a console application written in C# using servicestack that has the following form: static void Main(string[] args) { //Some service setup code here Console.ReadKey(); } This code works fine when run on windows as a console. The implementation is almost exactly https://github.com/ServiceStack/ServiceStack/wiki/Self-hosting as this is a test project I then compile this project using mono on linux and build into a docker file. I have no problems running up a container based on this image

How to print bitmap without zoom from MVC controller in Debian

前提是你 提交于 2020-01-14 06:52:09
问题 Document is printed from MVC controller to Debian Squeeze Linux server printer using code below in Mono. Page in printer is A4. Printed text in paper is too big and unsharp. Rightmost part of text is not visible since it does not fit to page. If printed from Windows from .NET to HP Laserjet, output is correct. So it looks like Mono or Samsung ML-331x Series printer zooms bitmap for unknown reason which causes too big and unsharp output. How to fix this so that bitmap is printed like in