Skip to content

Switching from Code Generation -> No code generation doesn't remove designer file #1156

@davkean

Description

@davkean

In the old project system, switching from RESX code generation from public/internal -> no code generation removes in the file.

In the new project system the file remains on disk, and due to the globs is part of the project:

  1. File -> New Console App (.NET Core)
  2. Right-click project, choose Add -> New Item
  3. Choose Resources file
  4. Click OK
  5. In the designer, change Access modifier from "internal" to "no code generation"

Expected: For the designer file to disappear
Actual: It becomes unnested, but stays in the project:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature-Resource-ExplorerThe modern Resource Explorer for editing and managing RESX and RESW files.Triage-ApprovedReviewed and prioritized

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions