Last active
March 21, 2022 03:53
-
-
Save adamgogogo/922b45ee7c804c8acbc294f3e187c988 to your computer and use it in GitHub Desktop.
.net core on macos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://jakeydocs.readthedocs.io/en/latest/client-side/yeoman.html | |
1. install .net core and C# extention on vscode | |
2. nvm use 14.13.0 | |
3. npm install -g yo bower grunt-cli gulp | |
4. npm install -g generator-aspnet | |
5. mkdir aspnetsrc & cd aspnetsrc | |
6. yo aspnet | |
? What type of application do you want to create? Empty Web Application | |
? What's the name of your ASP.NET application? EmptyWeb1 | |
cd "EmptyWeb1" | |
dotnet restore | |
## Could not execute because the application was not found or a compatible .NET SDK is not installed. | |
"version": "2.0.0-006912" | |
dotnet dev-certs https --trust | |
Build and run the app using dotnet build and dotnet run | |
## It was not possible to find any compatible framework version | |
The framework 'Microsoft.NETCore.App', version '1.0.5' (x64) was not found. | |
- The following frameworks were found: | |
6.0.3 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] | |
cd /usr/local/share/dotnet/shared/Microsoft.NETCore.App/ | |
sudo ln -s 6.0.3 1.0.5 | |
## Unhandled exception. System.AggregateException: One or more errors occurred. | |
(Unable to load shared library 'libuv' or one of its dependencies. | |
In order to help diagnose loading problems, | |
consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibuv, 1): image not found) | |
---> | |
System.DllNotFoundException: Unable to load shared library 'libuv' or one of its dependencies. | |
In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: | |
dlopen(liblibuv, 1): image not found | |
https://www.nuget.org/packages/Libuv | |
dotnet add package Libuv --version 1.10.0 | |
Now listening on: http://localhost:7800 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment