Skip to content

Instantly share code, notes, and snippets.

@polatengin
Last active October 16, 2016 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polatengin/2d09105fe046f5205da5cbd127251569 to your computer and use it in GitHub Desktop.
Save polatengin/2d09105fe046f5205da5cbd127251569 to your computer and use it in GitHub Desktop.
ASP.NET Core projelerinde Kestrel adresini belirleme
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseUrls("http://localhost:5010", "http://localhost:5012")
.UseIISIntegration()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.Build();
host.Run();
}
.UseUrls("http://localhost:6000", "http://localhost:7000")
yo aspnet
// Empty Application seçeneğini seçiyoruz
// Projeye aspnetcorekestrelurl ismini veriyoruz
cd aspnetcorekestrelurl
code .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment