question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSTS Task fails to restore certain project references

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mclark1129commented, Sep 5, 2017

I used the installer task to install version 1.0.4 of the SDK now my build is able to complete successfully.

0reactions
mclark1129commented, Sep 6, 2017

Closoing as I have an acceptable workaround for the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting NuGet Package Restore in Visual Studio
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.
Read more >
NuGet Restore task fails for .Net Core project migrated with VS ...
Dear all, I have .Net Core project which has been converted with Visual Studio 2017. The build plan especially the task NuGet Restore...
Read more >
Nuget Restore ignore references projects - Stack Overflow
You are using project reference (ProjectReference) instead of package reference. You need to install the corresponding packages from VSTS ...
Read more >
NuGet Restore fails with MSBuild version 16.9.0.16703
config have the NuGet packages restored. Any projects with a package reference fail during the VS build task. I tried setting the msbuild...
Read more >
Problem: Unable to resolve dependencies of NuGet packages
Solution · Clear the NuGet cache files. You do this in the following way: In the toolbar of Visual Studio, navigate to Tools...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found