Skip to content

Instantly share code, notes, and snippets.

@ThePSAdmin
ThePSAdmin / ReadMe.md
Last active March 2, 2023 00:25 — forked from Jaykul/ReadMe.md
Kestrel in PowerShell

Trying to get Kestrel to work in PowerShell

This works, sort-of, but for some reason it won't actually serve pages. I get nothing but "The connection was reset" or "can't reach this page"

Before you can run Start-Kestrel, you need to download a bunch of assemblies, and since my example is just trying to serve files, you'll need a file or two...

From an empty folder where you're going to put Start-Kestrel.ps1 we need to install a thousand DLLs or so...

Install-Package Microsoft.AspNetCore.App -ProviderName NuGet -Destination bin -Source nuget.org -Force