Skip to content

Switching from Code Generation -> No code generation leaves an empty Update in the project file #1157

Open

Description

@davkean

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:

<?xml version="1.0" encoding="utf-16"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.0</TargetFramework>
  </PropertyGroup>
  </ItemGroup>
</Project>

Actual:

<?xml version="1.0" encoding="utf-16"?>
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <EmbeddedResource Update="Resource1.resx">
      <Generator>
      </Generator>
    </EmbeddedResource>
  </ItemGroup>
</Project>

Activity

  1. changed the title [-]Switching from Code Generation -> No code generation leaves an Update in the project file[/-] [+]Switching from Code Generation -> No code generation leaves an empty Update in the project file[/+] on Jan 13, 2017
  2. added and removed on Jan 18, 2017
  3. modified the milestone: on Jan 18, 2017
  4. modified the milestones: 16.0, 15.3 on Apr 3, 2017
  5. modified the milestones: 16.0, 16.X, Backlog on Jan 30, 2019
  6. added
    Triage-Approved
    on Jan 30, 2019
  7. davkean commented on Feb 1, 2020

    @davkean
    MemberAuthor

    This still occurs in 16.5.

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

Metadata

Metadata

Assignees

Labels

Triage-Approved

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions