-
-
Save polatengin/2d09105fe046f5205da5cbd127251569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ASP.NET Core projelerinde Kestrel adresini belirleme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.UseUrls("http://localhost:6000", "http://localhost:7000") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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