Why are these packages listed as warning?

Tom van Stiphout 1,621 Reputation points MVP
2022-04-09T01:53:18.427+00:00

I'm a basic VS user. At home I upgraded from 2019 to VS2022, then tried to open a solution I had backed up from the company's TFS. The developer showed it was working. Well, not for me. Ignore "Kinetik.Diagnostics" which is a module created in our company. But the other packages are (to my eye) listed as good and installed on the left, yet warning on the right.
So discouraging, if you just want to get busy with the code, the tool puts roadblocks in your way. Sigh.

191390-image.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,372 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
    2022-04-11T05:53:25.447+00:00

    Hi @Tom van Stiphout ,

    Welcome to Microsoft Q&A forum.

    Normally, this means VS cannot find the related NuGet packages, but there should be many other causes. Please try following troubleshooting steps and let me know if any of them works for you:

    1. Please check if the installed NuGet packages exist in this directory: %userprofile%\.nuget\packages.
    2. Please right-click your solution > Restore NuGet Packages.
    3. Please open your .csproj file(right-click your project > Unload Project > right-click it again > Edit Project File) and the nuget.config file(in your Solution Items folder), and check if some specific paths are set for NuGet packages.
    4. Please try to create a new project use VS 2022, and check if this issue happens again.
    5. Make sure you have installed .NET 6.0 framework and you have full permission to access the directory which stores NuGet package.
    6. Consider this issue appeared after you upgraded to use VS 2022, I also notice that here is a similar issue, but I’m not sure if it is a potential issue. I suggest you share some related information there and Product Team will help to check/fix this issue.

    Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments