Skip to content

Fails to create project if an editorconfig file already exists in the solution #4774

@CoolDadTx

Description

@CoolDadTx

Describe the bug

I have an existing project with a .editorconfig already present. When running the wizard to generate a new WinUI project it fails saying access denied to .editorconfig. Dismissing the error leaves the wizard in a running, but unfinishable state. The only recourse is to cancel the wizard.

The workaround is to delete the file before running the wizard.

To Reproduce

  1. Create or open a solution that already has an .editorconfig file in the root of the solution
  2. Use the template studio template to create a WinUI project
  3. Select any settings you want and then create the project
  4. During creation the wizard fails because of an access denied to the solution's .editorconfig file

Additional context

No response

Applies to the following platforms:

  • WinUI
  • WPF
  • UWP

About your setup

  • Visual Studio Version:
  • Template Studio Wizard Version:
  • Windows Build:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue relates to the wizard not working or a problem with the generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions