dotnet aks api template
1.0.0
AKS 용으로 완성 된 12 팩터, ASP.NET Core Web API를 생성하기위한 dotnet new 템플릿.
dotnet new -i RobBell.AksApi.Template
템플릿은 공식 Nuget 저장소에서 해결됩니다.
Myapi 라는 새 프로젝트를 만들려면 :
dotnet new aksapi -n MyApi
다른 옵션은 다음과 같습니다.
--controller-name The name of the default controller
Default: SampleController
--disable-open-api Disable OpenAPI (Swagger) support
Default: false
--disable-health-check Disable liveness and readiness support
Default: false
--disable-logging Disable Logging and AppInsights support
Default: false
--instrumentation-key The AppInsights application key if logging is enabled
Default: 11111111-1111-1111-11111111111111111
--skip-restore Skips the restore of the project on create
Default: false
dotnet restore dotnet new 합니까? 템플릿을 변경 한 후 아래 스크립트를 실행하여 로컬로 포장하고 설치하십시오.
./pack-and-install.sh
완료되면 다음을 사용하여 템플릿에서 새 프로젝트를 만들 수 있습니다.
dotnet new aksapi
노력하다:
dotnet new -i RobBell.AksApi.Template --nuget-source https://api.nuget.org/v3/index.json
때로는 공식 리포에서 템플릿의 설치를 방해하는 패키지 소스에 개인 NUGET 리포지토리가있을 수 있습니다. 예를 들어:
C:Program Filesdotnetsdk3.1.403NuGet.targets(128,5):
error : Unable to load the service index for source https://myprivatenugetrepo.com/nuget/v3/index.json.
C:Program Filesdotnetsdk3.1.403NuGet.targets(128,5):
error : Response status code does not indicate success: 401 (Unauthorized).