Fedorea 26
에서 실행 중이므로 처음으로 dotnet core asp
응용 프로그램을 빌드하고 있습니다. 아래의 dotnet restore
명령을 시도 할 때 오류가 발생하면 this 자습서를 따르십시오.단순한 yo 프로젝트에서 dotnet 복원 오류가 발생했습니다
yo
은 dotnet core 1.x
응용 프로그램을 빌드하지만 다음과 같이 나는 dotnet core 2.0.0
이 있다는 의혹이 있습니다.
올바른지, 그렇다면 yo
을 업그레이드하여 dotnet 2.0 프로젝트를 만들 수 있습니까?
yo aspnet
_-----_ ╭──────────────────────────╮
| | │ Welcome to the │
|--(o)--| │ marvellous ASP.NET Core │
---------´ │ generator! │ (_´U
_) ╰──────────────────────────╯ / \/ | ~ |
'._ .'__
'|° ´ Y
? What type of application do you want to create? Empty Web Application
? What's the name of your ASP.NET application? WeatherMicroservice
create WeatherMicroservice/.gitignore
create WeatherMicroservice/Program.cs
create WeatherMicroservice/Startup.cs
create WeatherMicroservice/WeatherMicroservice.csproj
create WeatherMicroservice/web.config
create WeatherMicroservice/Properties/launchSettings.json
create WeatherMicroservice/runtimeconfig.template.json
create WeatherMicroservice/README.md
create WeatherMicroservice/global.json
Your project is now created, you can use the following commands to get going
cd "WeatherMicroservice"
dotnet restore
dotnet build (optional, build will also happen when it's run)
dotnet run
[[email protected] asp-core]$ cd WeatherMicroservice/
[[email protected] WeatherMicroservice]$ dotnet restore
The specified SDK version [1.0.0-rc4-004771] from global.json [/home/idf/Documents/asp-core/WeatherMicroservice/global.json] not found; install specified SDK version
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
이것은 dotnet
의 버전이 설치됩니다
[[email protected] WeatherMicroservice]$ dotnet --info output:
The specified SDK version [1.0.0-rc4-004771] from global.json [/home/idf/Documents/asp-core/WeatherMicroservice/global.json] not found; install specified SDK version
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
[[email protected] WeatherMicroservice]$