Skip to content

Bug: Copy Local (Private) not respected for project references #2015

Open
@JohnMcPMS

Description

@JohnMcPMS

Description

The target CsWinRTRemoveWinMDReferences removes the project referenced .winmds from ReferencePath and puts their implementation (if present) in the ReferenceCopyLocalPaths. This does not respect the "Copy Local" (Private) value as set for the project reference.

Steps To Reproduce

  1. Create authoring project A
  2. Create consuming project B
  3. Reference A from B
  4. Set "Copy Local" -> "No" in VS (or <Private>false</Private> in the ProjectReference)
  5. Build, note that the implementation binary A will be placed in the output for B

Expected Behavior

Outputs of project A should not be placed in the outputs of project B when these properties are set.

Version Info

CsWinRT 2.1.6

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions