Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing SDK 9.0 RC2, creating ASP.NET Core Web App (Razor Pages) (Individual) project, some packages are not loaded successfully. #43341

Closed
vmykagapuz opened this issue Sep 11, 2024 · 11 comments
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member

Comments

@vmykagapuz
Copy link

REGRESSION

  1. Worked in SDK RC1

INSTALL STEPS

  1. Clean machine: Win11 x64 22h2 ENU
  2. Install SDK 9.0 RC2 daily build
  3. Apply 9.0 Feed
  4. Install VSCode or VS

REPRO STEPS

  1. Open CMD, create an ASP.NET Core Web App (Razor Pages) using following commands:
    dotnet new razor -au individual -o webapp1
  2. Open this project using VSCode or VS.

ACTUAL
Dependencies | Packages show warning icon. Some packages are not loaded successfully.
image

EXPECTED
All packages should be loaded successfully.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member labels Sep 11, 2024
@vmykagapuz vmykagapuz changed the title After installing SDK 9.0 RC2, creating ASP.NET Core Web App (Razor Pages) (Individual) project, some warning icons are displayed in Dependencies | Packages After installing SDK 9.0 RC2, creating ASP.NET Core Web App (Razor Pages) (Individual) project, some packages are not loaded successfully. Sep 11, 2024
@MackinnonBuck
Copy link
Member

@wtgodbe, it looks like the templates are referencing a package that can't get resolved. Do you know what might cause this? What decides the version of a package in the generated project?

@wtgodbe
Copy link
Member

wtgodbe commented Sep 11, 2024

What feed are you using? I traced back the build, and those packages should definitely be available in the dotnet9 feed

@v-elenafeng
Copy link

What feed are you using? I traced back the build, and those packages should definitely be available in the dotnet9 feed

Yes, we used the dotnet9 feed.

@mkArtakMSFT
Copy link
Member

EF issue should be fixed now. @AndriySvyryd can you please link the PR here? Thanks!

@mkArtakMSFT
Copy link
Member

What are the actual warnings / errors shown in the console?

@mkArtakMSFT
Copy link
Member

@vmykagapuz does the project run or not after F5?>

@AndriySvyryd
Copy link
Member

@mkArtakMSFT I think this is a feed/coherency issue

@vmykagapuz
Copy link
Author

@vmykagapuz does the project run or not after F5?>

The warning sign does not affect the running of the project, and here is the warning message shown in the error list.
image

@v-elenafeng
Copy link

As Jose discovered here, the issue is caused by the new feature in NuGet to surface vulnerabilities in dependencies. And the warnings can be resolved by manually updating the vulnerable packages. There is an issue https://github.com/dotnet/AspNetCore-ManualTests/issues/2929#issuecomment-2348161898 tracking the vulnerable packages.

Project 'WebApplication6' has the following dependency graph(s) for 'System.Text.Json':

  [net9.0]
   │
   ├─ Microsoft.EntityFrameworkCore.SqlServer (v9.0.0-rc.2.24460.3)
   │  └─ Microsoft.Data.SqlClient (v5.1.6)
   │     ├─ Azure.Identity (v1.11.4)
   │     │  ├─ Azure.Core (v1.38.0)
   │     │  │  ├─ System.ClientModel (v1.0.0)
   │     │  │  │  ├─ System.Memory.Data (v1.0.2)
   │     │  │  │  │  └─ System.Text.Json (v7.0.3)
   │     │  │  │  └─ System.Text.Json (v7.0.3)
   │     │  │  ├─ System.Memory.Data (v1.0.2)
   │     │  │  │  └─ System.Text.Json (v7.0.3)
   │     │  │  └─ System.Text.Json (v7.0.3)
   │     │  └─ System.Text.Json (v7.0.3)
   │     ├─ Microsoft.IdentityModel.JsonWebTokens (v6.35.0)
   │     │  └─ System.Text.Json (v7.0.3)
   │     └─ Microsoft.IdentityModel.Protocols.OpenIdConnect (v6.35.0)
   │        └─ System.IdentityModel.Tokens.Jwt (v6.35.0)
   │           └─ Microsoft.IdentityModel.JsonWebTokens (v6.35.0)
   │              └─ System.Text.Json (v7.0.3)
   └─ Microsoft.EntityFrameworkCore.Tools (v9.0.0-rc.2.24460.3)
      └─ Microsoft.EntityFrameworkCore.Design (v9.0.0-rc.2.24460.3)
         └─ Microsoft.CodeAnalysis.Workspaces.MSBuild (v4.8.0)
            └─ System.Text.Json (v7.0.3)

@AndriySvyryd
Copy link
Member

Then it will be fixed by dotnet/efcore#34666

@v-elenafeng
Copy link

Verified that this issue has been fixed in VS 17.12 P3 (including 9.0 rc2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

6 participants