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.

Paket with net core 3.0 fails

See original GitHub issue

Description

When running as part of dotnet build for a NET Core 3.0 solution, paket fails with an error message:

Extracting platforms from path '${targetFramework}' failed, a newer Paket version might support it, otherwise please open an issue for a missing platform handler.

Strangely, when I build from Visual Studio, all is fine. And after once building from there, dotnet build works, too. Unfortunately, I cannot apply this workaround on my build agent.

The NET Core SDK version is 3.0.100. The Paket version is 5.220.0.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Lewiszzcommented, Jul 3, 2020

@ScottHutchinson I’m trying to upgrade from netcoreapp3.0 to netcoreapp3.1. When running paket restore, I also get Extracting platforms from path 'netcoreapp3.1' failed. I can still run the project using your workaround with paket install, but restore doesn’t work. Did you manage to solve it?

Edit: I found out that my global paket tool wasn’t up to date, and once I got that upgraded I didn’t get the paket restore error anymore.

0reactions
psfinakicommented, Jul 6, 2020

Yeah something similar here. Just want to update a small project from .NET Core 3.0 to 3.1. Build from VS works, dotnet build as well, paket restore also, paket install also. But fake build shows There was a problem while setting up the environment: -> Extracting platforms from path 'netcoreapp3.1' failed.

Using Paket version 5.247.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NETSDK1079: The Microsoft.AspNetCore.All package is ...
You may receive this error message when: You retarget an ASP.NET Core project from .NET Core 2.2 or earlier to .NET Core 3.0...
Read more >
Unable to find package Microsoft.NETCore.App.Host.win ...
csproj file? Your error message is quite specific on the version, indicating that something is requiring v2.2.7, perhaps another project in your ...
Read more >
Paket and the .NET SDK / .NET Core CLI tools (dotnet CLI ...
NET Core ) or with MSBuild 15 (Visual Studio 2017 and Mono 5). The general workflow is not very different from using Paket...
Read more >
Can't get paket to work for the simplest case : r/fsharp
Core. Performance: - Runtime: 757 milliseconds. And here's the error I get: user@vm:~/slnwithpaket$ dotnet run --project src/App ...
Read more >
ASP.NET Core IIS InProcess Hosting Issue in .NET Core 3.1
Debugging Server Startup Failures. The ANCM (ASP.NET Core Module) error message page is scary because it doesn't provide much in the way of ......
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