Configuring Mono for an ASP.net application on MacBook Pro El Capitan 11/10/12 i5: tlstest.cs compiles with three warnings, and the tlstest.exe command with 1 error
Trying to run the tests described here:
http://www.mono-project.com/docs/getting-started/mono-basics/
mono hello.exe //runs fine with no errors and prints "Hello Mono World"
However, I downloaded tlstest.cs (see the link above for the source) and compiled it with:
mcs tlstest.cs /r:System.dll /r:Mono.Security.dll
This returned 3 warnings as follows:
tlstest.cs (169.23): warning CS0618: System.Net.ServicePointManager.CertificatePolicy' is obsolete:Use ServerCertificateValidationCallback 'instead
tlstest.cs (210,26): warning CS0618: System.Net.Dns.Resolve(string)' is obsolete:Use GetHostEntry 'instead
tlstest.cs (176,11): warning CS0219: the variable `prefix 'is assigned, but its value is never used
- 3 ()
, tlstest.exe , :
mono tlstest.exe https://www.nuget.org //which returned an error:
# -2146762486: CERT_E_CHAINING 0x800B010A