1。安装openssl p>
brew update
brew install openssl
2. Install.net core SDK
sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib /usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.2/System.Security.Cryptography.Native.dylib
3. Go to install vs code
install c# extension: open vs code, press command+p and enter
ext install csharp
Test p>
4.
mkdir HelloWorld
cd HelloWorld
dotnet new
dotnet restore
dotnet run
p>
effect
Project HelloWorld (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling HelloWorld for .NETCoreApp,Version=v1.0
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:01.4283528
Hello World!
5. Open the newly created HelloWorld with vs code, install the plug-in according to the prompts, the final effect is
Updating C# dependencies...
Platform: darwin, x86_64
Downloading package 'OmniSharp for OSX' (24653 KB) .................... Done!
Downloading package '.NET Core Debugger (macOS/x64)' (43967 KB) .................... Done!
Installing package 'OmniSharp for OSX'
Installing package '.NET Core Debugger (macOS/x64)'
Finished
Failed to spawn 'dotnet --info'
Warning: project.json is no longer a supported project format for .NET Core applications. Update to the latest version of .NET Core (https://aka.ms/netcoredownload) and use 'dotnet migrate' to upgrade your project (see https://aka.ms/netcoremigrate for details).
resources http://www.cnblogs.com/gk0124/p/6066857.html
http://blog.csdn.net/x_studying/article/details/52730913 p>
Read More:
- PHP:Fatal error: Class ‘COM’ not found in … How to deal with the problem
- failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
- Failed building wheel for psycopg2
- An error occurred while starting the application
- Solutions to the failure of importing Python 3.7 SSL module
- Solved “openssl config failed: error:02001003:system library:fopen:No such process” for Nodejs Windo
- Virtual environment: error: virtualenv is not compatible with this system or executable
- Ambari OpenSSL version problem: sslerror: failed to connect. Please check OpenSSL library versions
- Solution to (ERROR: Failed to build gem native extension.) encountered when updating pod
- Solution encountered when updating pod (error: failed to build gem native extension.)
- Cocoapods- ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
- ADB:INSTALL_ FAILED_ UPDATE_ Incompatible [solved]
- Mac installation dart error curl: (35) libresssl SSL_ connect: SSL_ ERROR_ SYSCALL in connection to storage.googleapis.co
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- npm ERR! Error: CERT_ Untrusted problem solving
- MinGW + libpython installation record
- Thoroughly solve check_ NRPE: Error – Could not complete SSL handshake.
- Git solves the problem of failed: http request failed
- Summary of Python deep learning packages
- Linux update Python method and error handling