mono

Running Selenium tests with Xamarin Studion on MAC

南笙酒味 提交于 2020-01-24 06:21:11
问题 I am trying to run my created tests on Visual Studio 2010 , using Selenium WebDriver , in a MAC using Xamarin Studio. I have chromedriver.exe as EmbeddedResource, so I removed and add the one for mac (chromedriver). Everything looks okay but doesnt allow me to run them because I see this error: OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused at System.Net

Consuming a Webservice (WSDL) using monodevelop C# on 4.0 on Windows 7 Pro

蓝咒 提交于 2020-01-24 00:26:31
问题 I'm exploring monodevelop C# for a project I'm moving from away from PHP. I'm currently developing on Windows 7 , and have installed monodevelop 4.0 The instructions for consuming a webservice describes compiling a WSDL uri using a command line tool called mcs http://www.mono-project.com/Consuming_a_WebService My monodevelop install does not seem to have installed these cli tools. I have checked the installation path. The application will be a gtk desktop application, but needs to use web

SaveFileDialog AddExtension doesn't work as expected

谁说胖子不能爱 提交于 2020-01-23 02:57:18
问题 I've the following C# code, which is using the SaveFileDialog and set's the AddExtension property to true : var dialog = new SaveFileDialog(); dialog.AddExtension = true; dialog.DefaultExt = "txt"; dialog.Filter = "Text files (*.txt)|*.txt|XML files (*.xml)|*.xml"; dialog.OverwritePrompt = true; if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { label1.Text = dialog.FileName; } And I've tested the following combination of File name and Save as type of the dialog. File name |

command line arguments to docker run

微笑、不失礼 提交于 2020-01-22 17:19:24
问题 I'm trying to slowly build up a docker image for our needs. What I want to do, is run my base image that has mono, and then have mono run an executable in the background. From the normal command line, without trying to run it in a container, it would look like: /usr/local/bin/mono /home/crystal/Downloads/BackgroundProcesser.exe & That works fine. But if I try to do it when I run the container like so: sudo docker run -i -t crystal/mono-base /usr/local/bin/mono /home/crystal/Downloads

UserCookieAuthentication in Mono 3.4.1

安稳与你 提交于 2020-01-22 09:51:05
问题 When ever I add the line below to my Startup class I get the exception below. This is a self hosted exe running from mono (Ubuntu). It works fine in windows. I've narrowed it down the UseCookieAuthentication call. I can instantiate the options without any issue. Any idea what is going on here? I have aspnet Identity working and EF6/MySql. app.UseCookieAuthentication(new CookieAuthenticationOptions()); Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown

JetBrains 推出编程字体 Mono:更适合程序开发人员

懵懂的女人 提交于 2020-01-21 15:44:51
JetBrains 推出了一种新字体,即JetBrains Mono,它是专为开发人员设计的。 JetBrains表示: 在当今的大部分时间里,我们作为开发人员都在看代码。我们一直在寻找最佳字体,以使我们更容易在屏幕上查看文本。但是,许多流行字体中的逻辑并不总是考虑到通读代码和阅读书本之间的区别。我们的眼睛以非常不同的方式沿代码移动,通常必须垂直移动和水平移动,这与阅读书籍不同,因为它们总是沿同一方向沿文本滑动。 我也自己试了下,效果的确很不错: 因此,在使用JetBrains Mono进行开发时,除其他外,重点研究了在长时间使用代码期间可能导致眼睛疲劳的问题。我们考虑了字母的大小和形状等问题;它们之间的空间量,自然以等宽字体设计的平衡;一些看起来不必要的细节和符号之间不清楚的区别,例如I和l;还要和开发字体时的编程连字。 从2019.3版本开始,JetBrains Mono字体将随IDE一起提供,当然,你可以下载它并在所需的任何编辑器中使用它。 JetBrains Mono介绍和下载:https://www.jetbrains.com/lp/mono 来源: CSDN 作者: jack1liu 链接: https://blog.csdn.net/jack1liu/article/details/104061050

Gtk theme in GTK# (Windows)

為{幸葍}努か 提交于 2020-01-21 11:28:12
问题 I'm trying to change the theme in GTK# ( OS: Windows, IDE: Xamarin ). But I get next issues: I was able to find only one theme which correctly render, it is "Orta". All was well, except for lags and freezes . Here is my code: string Resource_File = "Orta\\gtk-2.0\\gtkrc"; Application.Init (); Gtk.Rc.AddDefaultFile (Resource_File); Gtk.Rc.Parse (Resource_File); MainWindow win = new MainWindow (); win.Show (); Application.Run (); When I changing the size of the Paned or clicking on button I get

Custom SQLite functions in Xamarin.iOS

非 Y 不嫁゛ 提交于 2020-01-21 09:46:10
问题 I am working on custom function of Sqlite on Xamarin.iOS. I got answer from here : Show markers on map within a given radius (Xamarin.Android) but I am running into issue of Attempting to JIT compile method '(wrapper native-to-managed) Mono.Data.Sqlite.SqliteFunction:ScalarCallback (intptr,int,intptr)' while running with --aot-only. After searching on stack I found that here is a solution: custom functions SQLite with Mono but solution mention there is tough for me to understand. I am not

Recommendations for porting a C# WPF .NET 4.0 application to Mac OS X (Mono?)

和自甴很熟 提交于 2020-01-21 09:45:27
问题 I currently have a (non commercial) application created in MS Visual C# 4.5, using WPF and LINQ. To make a future porting possible to Mac OS X, I have used the MVVM design pattern to split the logic and user interface. I would like to know: 1) I know WPF is not supported by Mono. I use a lot of bindings. Is it possible to port this into WinForms (or another way that is supported by Mono) in a reasonably easy manner? 2) I guess all LINQ functionality has to be changed into for/foreach loops? 3

Recommendations for porting a C# WPF .NET 4.0 application to Mac OS X (Mono?)

人走茶凉 提交于 2020-01-21 09:45:23
问题 I currently have a (non commercial) application created in MS Visual C# 4.5, using WPF and LINQ. To make a future porting possible to Mac OS X, I have used the MVVM design pattern to split the logic and user interface. I would like to know: 1) I know WPF is not supported by Mono. I use a lot of bindings. Is it possible to port this into WinForms (or another way that is supported by Mono) in a reasonably easy manner? 2) I guess all LINQ functionality has to be changed into for/foreach loops? 3