Skip to content

Web API in MVC 6 'IServiceCollection' error #361

@chowlouise

Description

@chowlouise

In my start up class for Web API in MVC 6, i have the following

public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}

And I have this error :

The type 'IServiceCollection' exists in both 'Microsoft.Framework.DependencyInjection.IServiceCollection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Microsoft.Framework.DependencyInjection.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

May i know how can resolve this?

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