Skip to content

PrivateAssets not considered for ProjectReference node #10366

@gnimor

Description

@gnimor

I have an "old style" .NET framework project which is used to create a Nuget package. The project itself is using other NuGet packages and project references. For the used NuGet packages the PackageReference format is used. In order to use the msbuild "pack" target a reference to the "NuGet.Build.Tasks.Pack" package was added.

Problem: The package will be created but the project to project references will be treated as Nuget References. Even after adding the "PrivateAssets=all" to the project reference node, they are still handled as NuGet references instead of packaging/including the project references to the package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions