Skip to content

dotnet Restore (& therefore msbuild /t:restore) skips projects with an explicit solution project dependency #4578

@natemcmaster

Description

@natemcmaster

Calling "msbuild.exe /t:Restore" on a solution skips a project in my solution.
This project has an explicit project dependency in the solution file.

Repro

  1. Download https://github.com/aspnet/BuildTools/tree/4ec80c34339019266353e6e557f7ca68c89fbdb3
  2. dotnet restore BuildTools.sln

Expected
Restores all csproj reference .sln file.

Actual
Skips NugetPackageVerifier.csproj
(see restore log here: https://gist.github.com/natemcmaster/016baf3563e369551d8f4c88cf9dcce0)

Details
msbuild.exe 15.0.26209.0
dotnet.exe 1.0.0-rc4-004771

Right click on solution -> Project Dependencies

image

Or see the raw BuildTools.sln

cc @emgarten

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions