Skip to content

dotnet restore --no-dependencies is loading asset files from upstream project references in the latest .Net 6 preview  #20556

Closed

Description

@breidikl commented on Wed, 11 Aug 2021 21:05:08 GMT

NuGet Product Used

dotnet.exe

Product Version

6.0.0-preview.7.21377.19

Worked before?

It works in 5.x version and also worked in 6 preview 4

Impact

No response

Repro Steps & Context

We have a distributed build that cds to the directory for each csproj and runs the following dotnet command on the machine that will be building that node:

dotnet.exe restore --use-lock-file --no-dependencies /p:ImportProjectExtensionProps=false /p:ImportProjectExtensionTargets=false /nodeReuse:false /maxcpucount:1 --lock-file-path packages.lock.json --locked-mode

At some point after .Net 6 preview 4, this started reading the project.assets.json files from the upstream project references, which causes problems with our build distribution model.

Verbose Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

needs team triageRequires a full team discussionuntriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions