Skip to content

[NETSDKE2E] [Regression] Unable to search NuGet package in VS Code. #49765

Closed as duplicate

Description

@yinjiehe01

Describe the bug

Cannot search for the NuGet package.

To Reproduce

  1. Install .NET SDK 10.0.100-preview.7.25363.101 and install VS Code with C# and C# devkit extension.
  2. Create a project like console -> F1-> NuGet: Add NuGet Package -> search NuGet package like "easpost.netstandard" -> enter
  3. Observe

Exceptions (if any)

Unable to find the relevant package.
Image

Dotnet info

.NET SDK:
 Version:           10.0.100-preview.7.25363.101
 Commit:            0b032b9f94
 Workload version:  10.0.100-manifests.44300ff6
 MSBuild version:   17.15.0-preview-25363-101+0b032b9f9

Runtime Environment:
 OS Name:     debian
 OS Version:  12
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/nicole/dotnet/sdk/10.0.100-preview.7.25363.101/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.

Host:
  Version:      10.0.0-preview.7.25363.101
  Architecture: x64
  Commit:       0b032b9f94

.NET SDKs installed:
  10.0.100-preview.7.25363.101 [/home/nicole/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 10.0.0-preview.7.25363.101 [/home/nicole/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 10.0.0-preview.7.25363.101 [/home/nicole/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/home/nicole/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Activity

  1. changed the title [-][NETSDKE2E] Unable to search NuGet package in VS Code.[/-] [+][NETSDKE2E] [Regression] Unable to search NuGet package in VS Code.[/+] on Jul 14, 2025
  2. marcin-krystianc commented on Jul 14, 2025

    @marcin-krystianc
    Contributor

    I've noticed it outside VSCode too. The minimalistic reproducing using the latest Ubuntu via docker:

    docker.exe run -t -i --rm ubuntu
    
    apt-get update && apt-get install wget tar -y \
    && mkdir dotnet \
    && export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 \
    && wget https://aka.ms/dotnet/10.0.1xx/daily/dotnet-sdk-linux-x64.tar.gz \
    && tar -C dotnet -xvzf dotnet-sdk-linux-x64.tar.gz \
    && cd dotnet \
    && ./dotnet --info \
    && ./dotnet nuget list
    
    .NET SDK:
     Version:           10.0.100-preview.7.25363.103
     Commit:            924987cbe3
     Workload version:  10.0.100-manifests.6b0861b3
     MSBuild version:   17.15.0-preview-25363-103+924987cbe
    
    Runtime Environment:
     OS Name:     ubuntu
     OS Version:  24.04
     OS Platform: Linux
     RID:         linux-x64
     Base Path:   /dotnet/sdk/10.0.100-preview.7.25363.103/
    
    .NET workloads installed:
    There are no installed workloads to display.
    Configured to use workload sets when installing new manifests.
    Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.
    
    Host:
      Version:      10.0.0-preview.7.25363.103
      Architecture: x64
      Commit:       924987cbe3
    
    .NET SDKs installed:
      10.0.100-preview.7.25363.103 [/dotnet/sdk]
    
    .NET runtimes installed:
      Microsoft.AspNetCore.App 10.0.0-preview.7.25363.103 [/dotnet/shared/Microsoft.AspNetCore.App]
      Microsoft.NETCore.App 10.0.0-preview.7.25363.103 [/dotnet/shared/Microsoft.NETCore.App]
    
    Other architectures found:
      None
    
    Environment variables:
      Not set
    
    global.json file:
      Not found
    
    Learn more:
      https://aka.ms/dotnet/info
    
    Download .NET:
      https://aka.ms/dotnet/download
    
    Welcome to .NET 10.0!
    ---------------------
    SDK Version: 10.0.100-preview.7.25363.103
    
    <....>
    --------------------------------------------------------------------------------------
    Unhandled exception. System.TypeLoadException: Could not load type 'System.CommandLine.CommandLineConfiguration' from assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
       at NuGet.CommandLine.XPlat.Program.MainInternal(String[] args, CommandOutputLogger log, IEnvironmentVariableReader environmentVariableReader)
       at NuGet.CommandLine.XPlat.Program.Main(String[] args)
    root@f7768d05f820:/dotnet#
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions