dotnet / dotnet/project-system

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

Open
#1,156 3 comments 0 reactions 0 assignees View on GitHub
Feature-Resource-Explorer Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

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](https://cloud.githubusercontent.com/assets/1103906/21922027/29fd3d78-d9c0-11e6-93e3-4c32c434d974.png)

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.