This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
function Prompt(){ | |
$W = Split-Path -leaf -path (Get-Location) | |
$prompt = Write-Prompt "$($env:UserName)@$($env:ComputerName):" -ForegroundColor Green | |
$prompt += Write-Prompt $W -ForegroundColor DarkCyan | |
$prompt += Write-Prompt '>' | |
return ' ' | |
} | |
function Remove-StoppedContainers { | |
docker container rm $(docker container ls -q) |
This document now exists on the official ASP.NET core docs page.
NODE DOCKER VERSIONS: https://hub.docker.com/_/node
docker run --rm -it -v ${PWD}:/src/someProject --name npm-stuff node /bin/bash
var builder = DistributedApplication.CreateBuilder(args); | |
var sqlPassword = builder.AddParameter("sql-password", secret: true); | |
var sqlserver = builder | |
.AddSqlServer("sqlserver", password: sqlPassword) | |
.WithDataVolume() | |
.WithLifetime(ContainerLifetime.Persistent); | |
var importSourceConnectionString = "Server=[REPLACE].database.windows.net;Authentication=Active Directory Interactive;Database=[REPLACE];Encrypt=True;" | |
var db = sqlserver |