Skip to content

Subtype markers are moved from .csproj to .csproj.user #14313

@AdmiralSnyder

Description

@AdmiralSnyder

Environment

VS 2026

.NET version

.net 10

Did this work in a previous version of Visual Studio and/or previous .NET release?

i don't think this is a regression

Issue description

existing
<Compile Update="WinTestForm.cs"> <SubType>Form</SubType> </Compile>
entries in the .csproj files are moved to the .csproj.user file arbitrarily (it happened to a coworker, and i just saw it in the changelog)
is this specified behaviour or a bug?

my goal would be to set these SubType-Markers in a Directory.Build.Props file for all *Form.cs files and all *UserControl.cs files in our codebase - will that work?

Steps to reproduce

I manually moved the values for a couple of forms into the .csproj because i moved the project in source control and the .csproj.user was stuck - and a day later, my change was reversed :-)

Diagnostics


Metadata

Metadata

Assignees

No one assigned

    Labels

    area-VSDesignerWindows Forms out-of-proc designer related issuesuntriagedThe team needs to look at this issue in the next triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions