aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 123 forks source link

VS 2017 RC3 will change launchSettings.json unexpectedly and unwanted #982

Closed glatzert closed 7 years ago

glatzert commented 7 years ago

Using VS 2017 RC3 and DotNET 1.0.0-rc3-004530 tooling, Visual Studio will "fix" launchSettings on loading a project.

My launchSetting.json before load:

{
  "profiles": {
    "Dotnet-Run": {
      "commandName": "Project",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

launchSettings.json after "fixing".

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:2807/",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Dotnet-Run": {
      "commandName": "Project",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

Since we do not use IIS Express, this behaviour is very annoying. Please remove this behavior.

mlorbetske commented 7 years ago

This issue is being tracked here https://github.com/aspnet/websdk/issues/82