Skip to content

[Bug] Template Launch Settings.json break Visual Studio 26 #1084

Closed

Description

@Ed-bb

What happened?

Project from Template has an error in the launchsettings.json

Project: WinUIAppReactorTest.csproj
LimitedFunctionality
System.AggregateException: One or more errors occurred.
---> (Inner Exception #0) System.Exception: Errors in 'C:\source\github\Ed-bb\WinUIAppReactorTest\WinUIAppReactorTest\Properties\launchSettings.json' need to be corrected before applying changes. Error message:
An element with the same key but a different value already exists. Key: '//'

Key: '//' might be a intended as a comment which should be // at the start of the line

An error in the launch settings file needs to be corrected before you
can run the WnUlAppReactorTest' project. An element with the same
key but a different value already exists. Key: Please see the error
list for details.
Image

Steps to reproduce

  1. Create a template WinUIReactor using the template.
  2. Load in Visual Studio
  3. Try to run

Reactor version / commit

4649e12

Platform

x64

.NET SDK version

10.0.400-preview.0.26322.102

Windows version

Windows 11

Windows App SDK version

No response

Logs / stack trace


Confirmation

  • I have searched existing issues and this isn't a duplicate.
  • This bug reproduces against the current main branch (or I've noted otherwise above).

Activity

  1. added
    bug
    on Aug 10, 2026
  2. a0556775895-lgtm commented on Aug 10, 2026

    @a0556775895-lgtm

    I dug into this: the generated launchSettings.json (from tools/Templates/templates/WinUIApp-CSharp/Properties/launchSettings.json) has six JSON properties all using the same key "//", which is invalid/ambiguous per the JSON spec and matches the reported error. This has been present since the file was introduced in commit f810c02 and doesn't appear elsewhere in the repo.

    There are a few possible fixes (real comments if the parser supports them, an array under one key, moving the docs elsewhere) — I don't have enough context on this project's conventions to pick one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions