Skip to content

Move the default location for ref assemblies to obj (from bin) #6543

Description

@rainersigwald

Today, ref assemblies are copied into the bin/ref folder by default. However, this is a sometimes confusing and unexpected output that is primarily used for internal build-performance reasons.

For Visual Studio 2022 we'd like to move this to a folder under obj.

The code change is to update this:

<TargetRefPath Condition=" '$(TargetRefPath)' == '' and '$(ProduceReferenceAssembly)' == 'true' ">$([MSBuild]::NormalizePath($(TargetDir), 'ref', $(TargetFileName)))</TargetRefPath>

The compat impact is less clear; some customers may have projects that expect the presence in ref. We could provide an opt-out (and/or put this under a changewave) but we'd like to hear from anyone who objects to this plan.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions