Tuesday, 22 March 2022

Misc

 # Misc

## .Net Core CLI

1. The .NET Core CLI is a cross-platform tool for developing .NET core applications
2. Using the CLI we can

    - Create a new project, configuration file, or solution based on the specified template
    - Restore the dependencies and tools required for a .net core project
    - Build a project and all of its dependencies
    - Run a project etc...
    
## Can we run an asp.net core application without using the built in kestrel web server.

The answer is YES. If we use the InProcess hosting model, the application is hosted inside of the IIS worker process (w3wp.exe or iisexpress.exe). Kestrel is not used with InProcess hosting model.

## Environment Variable

1. If we have not explicitly set ASPNETCORE_ENVIRONMENT variable, it defaults to Production. This is done on purpose for better security and performance.

## Useful methods of IHostingEnvironment service

    - IsDevelopment()
    - IsStaging()
    - IsProduction()

No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...