Skip to content

Minimizing References with .NET Core csproj VS 2017 Tooling #7896

@RehanSaeed

Description

@RehanSaeed

I have .NET Core class libraries I publish to NuGet. After upgrading them to VS 2017 csproj format, they have the following signature.

<Project Sdk="Microsoft.NET.Sdk">
    ...
</Project>

Adding Microsoft.NET.Sdk seems to add references to a base set of libraries. However, as a library author myself, I probably want to only references a minimum set of references. Is that still true and if so, how can it be achieved?

Looking at the ASP.NET Core and Entity Framework Core projects, they seem to use Microsoft.NET.Sdk and do not individually select just the packages they need.

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