http://www.mono-project.com/docs/getting-started/mono-basics/
mono hello.exe //runs fine with no errors and prints "Hello Mono World"
Run Code Online (Sandbox Code Playgroud)
但是,我下载了tlstest.cs(参见上面的链接获取源代码)并编译它:
mcs tlstest.cs /r:System.dll /r:Mono.Security.dll
Run Code Online (Sandbox Code Playgroud)
这返回了3个警告如下:
tlstest.cs(169,23):警告CS0618:System.Net.ServicePointManager.CertificatePolicy' is obsolete:使用ServerCertificateValidationCallback代替'
tlstest.cs(210,26):警告CS0618:System.Net.Dns.Resolve(string)' is obsolete:使用GetHostEntry代替'
tlstest.cs(176,11):警告CS0219:分配了变量`prefix',但从未使用过它的值
编译成功 - 3次警告
所以现在已经创建了tlstest.exe,所以我跑了:
mono tlstest.exe https://www.nuget.org //which returned an error:
Run Code Online (Sandbox Code Playgroud)
错误#-2146762486:CERT_E_CHAINING 0x800B010A