Choose port automatically

This commit is contained in:
Ryan Brandenburg 2017-07-25 10:11:43 -07:00
parent 9f46c88961
commit 8096b4aca4
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ namespace ApplicationInsightsJavaScriptSnippetTest
var deploymentParameters = new DeploymentParameters(GetApplicationPath(), ServerType.Kestrel,
RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
{
ApplicationBaseUriHint = "http://localhost:0",
PublishApplicationBeforeDeployment = true,
PreservePublishedApplicationForDebugging = PreservePublishedApplicationForDebugging,
TargetFramework = "netcoreapp2.0",