Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

Can't reference two shared source packages that depend on same shared source package. (shared sources should be transitive) #1237

@NTaylorMullen

Description

@NTaylorMullen

Right now if I have the following project structure were all projects are shared source projects:

   / -- B
A 
   \ -- C

I'm unable to utilize both package B & C in the same application like so:

         / -- B -- \
TestApp             A
         \ -- C -- /

This is due to the sources of A being embedded into both B and C:

B: B.cs, A.cs
C: C.cs, A.cs

Which results in duplicate types for the A.cs in a test app. Talked with @loudej and @ChengTian about potential fixes for this issue and @loudej suggested we make shared sources transitive where the nupkg for B would contain a dependency on shared source A. This way package resolution can only bring in one copy of A.cs and essentially only ever do 1 copy of all sources from shared sources.

@loudej / @ChengTian feel free to add additional details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions