Skip to content

Publish: PrivateAssets=All not honored on ProjectReference items #952

@bricelam

Description

@bricelam

Steps

  1. Create a new .NET Core Console App
  2. Add a new .NET Standard Class Library
  3. Reference the class library from the console app:
    <ProjectReference Include="..\ClassLibrary1\ClassLibrary1.csproj"
                      PrivateAssets="All" />
  4. Run dotnet publish on the console app.

Unexpected Results

  • ClassLibrary1.dll is copied to the the 'publish' directory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions