################## Commands #######################
> dotnet new mvc -n "Lab.Mvc"
> cd Lab.Mvc
> dotnet run
################## Azure Resource Manager ##################
Connection name :MSDN Andreslon-22
Subscription ID : 54535#f7-d73d-4149-ab3e-5f7e#9985135
Subscription name: MSDN Andreslon-22
Service principal client ID : be#2##ea-fd#c-4df2-b475-#d95195aea#4
Service principal key: 5#ROxb16z#qRUEWxQ/F6vjRykr2RhiWEab/ww9nbEJI=
Tenant ID: 8d5#1899-ab9#-4774-98#c-5cfa3917ddce
################## Publish Settings ##################
https://go.microsoft.com/fwlink/?LinkID=312990
################## Get Tenant ID ##################
The tenant ID is tied to ActiveDirectoy in Azure
Navigate to Dashboard
Navigate to ActiveDirectory
Navigate to Manage / Properties
Copy the "Directory ID"
################## DockerFile #######################
#Linux
FROM microsoft/dotnet:2.1-sdk AS build-env
#Windows
#FROM microsoft/dotnet:2.1-sdk-nanoserver-1709 AS build
WORKDIR /app
# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out
# Build runtime image
#Linux
FROM microsoft/dotnet:2.1-aspnetcore-runtime
#Windows
#FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1709 AS base
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "Lab.Mvc.dll"]
################## Documentation #######################
* Swagger
https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-2.1&tabs=visual-studio%2Cvisual-studio-xml
* Environment Variables Net Core
https://www.c-sharpcorner.com/article/reading-values-from-appsettings-json-in-asp-net-core/
* Dependency injection
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-2.1
* EF Core
https://docs.microsoft.com/en-us/ef/core/
* Onion Architecture
https://www.c-sharpcorner.com/UploadFile/dhananjaycoder/step-by-step-implementing-onion-architecture-in-Asp-Net-mvc/
https://social.technet.microsoft.com/wiki/contents/articles/36655.onion-architecture-in-asp-net-core-mvc.aspx
https://github.com/ardalis/CleanArchitecture
http://www.anilsezer.com/onion-architecture-in-net-projects
* Identity Server
http://docs.identityserver.io/en/release/quickstarts/0_overview.html
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.