Git Product home page Git Product logo

dotnet.start's Introduction

dotnet.start

Set the URLs for an ASP.NET Core app

By default, ASP.NET Core apps listen on the following URLs:

UseUrls()

Set the URLs to use statically in Program.cs.

Environment variables

Set the URLs using DOTNET_URLS or ASPNETCORE_URLS.

Command line arguments

Set the URLs with the --urls parameter when running from the command line.

Using launchSettings.json

Set the URLs using the applicationUrl property.

KestrelServerOptions.Listen()

Configure addresses for Kestrel server manually using Listen().

Generate cert and configure local machine for HTTPS (PowerShell):

dotnet dev-certs https -ep $env:USERPROFILE.aspnet\https\aspnetapp.pfx -p crypticpassword

dotnet dev-certs https --trust

dotnet user-secrets -p aspnetapp\aspnetapp.csproj set "Kestrel:Certificates:Development:Password" "crypticpassword"

Install and Use dotnet new templates (e.g. IdentityService4)

dotnet new -i IdentityServer4.Templates dotnet new --install IdentityServer4.Templates::4.0.1

Generate DBContext from existing database

dotnet add package Microsoft.EntityFrameworkCore.Design

dotnet add package Microsoft.EntityFrameworkCore.SqlServer

dotnet ef dbcontext scaffold "Data Source=(local);Initial Catalog=mPayments;Persist Security Info=True;User ID=sa;Password=G532_@diem" Microsoft.EntityFrameworkCore.SqlServer -t MPayMessageQueue -t MPayNppRap -o PaymentContext -c "PaymentContext" -f --no-onconfiguring --no-pluralize

dotnet.start's People

Contributors

adrianfu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.