VSTS Task fails to restore certain project references
See original GitHub issueThis issue seems to have cropped up sometime in the past week, and I’m not entirely sure why. One of my builds stopped working and fails to restore a unit test project which has a project reference to a web app within my solution.
2017-08-29T20:14:57.6398410Z
d:\a\1\s\test\AmWins.AmLink.Identity.Server.UnitTests\AmWins.AmLink.Identity.Server.UnitTests.csproj : error NU1105: Unable to find project information for ‘d:\a\1\s\src\AmWins.AmLink.Identity.Server\AmWins.AmLink.Identity.Server.csproj’. The project file may be invalid or missing targets required for restore.
I experience this behavior when trying to run dotnet restore
via the following tasks
.NET Core Task: dotnet restore 1.*
Command Line 1.*
Strangely enough if I change the Command Line task v2 (2.120.1) then the packages restore correctly. Unfortunately, shortly after that I run dotnet test
using the .NET Core task and it fails with the same message.
I am unable to reproduce this locally using dotnet
on the command line. Packages continue to restore just fine. Until today I was running 1.1.0 of the SDK locally, but even after installing 2.0.0 the command line works properly. I expect this would eliminate some project compatibility issue building older projects agains the 2.0 SDK.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
I used the installer task to install version 1.0.4 of the SDK now my build is able to complete successfully.
Closoing as I have an acceptable workaround for the issue.