fsprojects / fsprojects/Paket

dotnet build issue with dotnet 6.0.114

Open
#4,200 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

I am trying to build from source with dotnet 6.0.114, but ran into the following build issue

/opt/homebrew/Cellar/dotnet@6/6.0.114/libexec/sdk/6.0.114/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket/Paket.fsproj]
  Restored /private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket.Core/Paket.Core.fsproj (in 3.48 sec).
  Restored /private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket/Paket.fsproj (in 3.95 sec).
  Paket version 7.2.0+bb14ab674b2748070a624f394cd6796e11aaffa8
  Restoring /private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket/Paket.fsproj
  Starting restore process.
  Total time taken: 0 milliseconds
/opt/homebrew/Cellar/dotnet@6/6.0.114/libexec/sdk/6.0.114/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1005: Assets file '/private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket/obj/project.assets.json' doesn't have a target for 'net6.0'. Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project. [/private/tmp/paket-20230222-98966-15e5lty/Paket-7.2.0/src/Paket/Paket.fsproj]

Let me know if I need to provide more info. Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the source build with dotnet 6.0.114 and inspect src/Paket/Paket.fsproj alongside the reported project.assets.json error. Determine why the restore does not contain a net6.0 target; done means the project restores and builds successfully without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.