Skip to content

Unable to find package Microsoft.Extensions.ServiceDiscovery with version (>= 10.6.0-preview.1.26210.2) after creating blazor-wasm-servicedefaults project #66594

@jinzhao1127

Description

@jinzhao1127

REGRESSION INFO: New feature on 11.0 P4, not repro in previous build

INSTALL STEPS:

  1. Clean Win 11 25h2 x64
  2. Install Latest 11.0 P4 build from https://release.dot.net/
  3. Apply Feed

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Open up a normal Command Prompt (Terminal)
  2. Create a blazor-wasm-servicedefaults app and run it.
    dotnet new blazor-wasm-servicedefaults  -o servicedefaults
    

Actual Result

error NU1102 Unable to find package Microsoft.Extensions.ServiceDiscovery with version (>= 10.6.0-preview.1.26210.2)
Image
Image

Error Log

 C:\Users\v-zhajin\servicedefaults1\servicedefaults1.csproj : error NU1102:
      Unable to find package Microsoft.Extensions.ServiceDiscovery with version (>= 10.6.0-preview.1.26210.2)
        - Found 36 version(s) in nuget.org [ Nearest version: 10.5.0 ]
        - Found 0 version(s) in Microsoft Visual Studio Offline Packages
        - Found 0 version(s) in C:\Program Files\dotnet\library-packs
        - Found 0 version(s) in net11
Restore failed.
Post action failed.
Manual instructions: Run 'dotnet restore'.

Expected Result
There is not any error.

Note:

  1. After change the packages version to 10.5.0, it will work.
    https://www.nuget.org/packages/Microsoft.Extensions.ServiceDiscovery
Image

Metadata

Metadata

Assignees

Labels

area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkbugThis issue describes a behavior which is not expected - a bug.feature-templates

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions