Skip to content

Implicit dependencies VS explicit dependencies #322

Closed
@ihippocrate

Description

@ihippocrate

Hi people,

I started a vNext project and had some trouble to build my project. The problem was that for a strange reason, I had this error:

The type 'IConfiguration' exists in both 'Microsoft.Framework.ConfigurationModel.IConfiguration, ...' and 'Microsoft.Framework.ConfigurationModel.Interfaces ...l'.

Of course there is no duplication and the interface IConfiguration is declared once in Microsoft.Framework.ConfigurationModel.Interfaces.

I finally found out that it was because i hadn't referenced Microsoft.Framework.ConfigurationModel in my project.json. But the package was already implicitly referenced by another package.
So I wonder how packages are referenced inside a vNext project. Is it normal that I have to explicitly declare all my required packages even if they are bring and referenced by another ones? And is it normal to have that kind of error ?

Thank's

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions