dotnet / dotnet/project-system

Launch Profile Initializer incorrectly reporting errors

Open
#6,580 1 comment 1 reaction 1 assignee Claimed by @tmeschter View on GitHub
Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

_This issue has a corresponding [ticket on Developer Community](https://developercommunity.visualstudio.com/content/idea/1020438/launch-profile-initializer.html). Please vote and comment there to make sure your voice is heard._

---

When the launchSettings.json file is missing `applicationUrl` and (I think) the .csproj is referencing the Microsoft.NET.Sdk.Web we get the following error:

> Launch Profile Initializer.
>
> Unable to parse the launchSettings.json file.

![](https://developercommunity.visualstudio.com/storage/attachments/133215-expsuhpwsas5url.jpg)

Here's an example of a failing launchSettings.json:

![](https://developercommunity.visualstudio.com/storage/attachments/133216-wpdudyuk.png)

And here's the working one:

![](https://developercommunity.visualstudio.com/storage/attachments/133217-xngm5btm.png)

As you can see, the only different is the (redundant) `applicationUrl`.

It's worth noting that the lack of applicationUrl has seemingly zero effect on this ASP.NET Core app running.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.