Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "RestoreTask" task returned false but did not log an error #13710

Closed
jeffschwMSFT opened this issue Aug 15, 2024 · 2 comments
Closed

The "RestoreTask" task returned false but did not log an error #13710

jeffschwMSFT opened this issue Aug 15, 2024 · 2 comments
Labels
Functionality:Restore Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Bug

Comments

@jeffschwMSFT
Copy link

NuGet Product Used

dotnet.exe

Product Version

.NET 9 preview

Worked before?

yes

Impact

It's more difficult to complete my work

Repro Steps & Context

Full details in dotnet/dnceng#3100 (including recent builds that are failing)

     2>/__w/1/s/.dotnet/sdk/9.0.100-preview.5.24307.3/NuGet.targets(170,5): error MSB4181: The "RestoreTask" task returned false but did not log an error. [/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Tools.proj]
##[error].dotnet/sdk/9.0.100-preview.5.24307.3/NuGet.targets(170,5): error MSB4181: (NETCORE_ENGINEERING_TELEMETRY=Restore) The "RestoreTask" task returned false but did not log an error.
     2>Done Building Project "/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Tools.proj" (Restore target(s)) -- FAILED.
     1>Done Building Project "/__w/1/s/.packages/microsoft.dotnet.arcade.sdk/9.0.0-beta.24311.10/tools/Build.proj" (default targets) -- FAILED.

Verbose Logs

No response

@zivkan
Copy link
Member

zivkan commented Aug 18, 2024

I believe this is a duplicate of:

You appear to be using .NET 9 preview 5, which is quite old, apparently released on the 11th of June, which is the same day as the fix got merged into Nuget.Client. Therefore, I suspect if you upgrade to a newer version of the .NET SDK, you should receive error messages when the error scenario happens.

@nkolev92 nkolev92 added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label Aug 19, 2024
@nkolev92
Copy link
Member

We have multiple issues tracking that bug, what @zivkan linked and then a newer bug: #13545.

It was fixed and the linked dnceng issue was also referenced in #13545 (comment).

I'm gonna close this as a dup.

Please let us know if this persists in latest .NET 9 SDK previews.

@nkolev92 nkolev92 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Functionality:Restore Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Bug
Projects
None yet
Development

No branches or pull requests

4 participants