Skip to content

Scaffold problem with .NET 10 #3324

@jorgefernandezmarban

Description

@jorgefernandezmarban

Microsoft.VisualStudio.Web.CodeGeneration.Design 9.0.0 Nugget install will report several warning on .NET 10 projects.
"Warning NU1608: A package version was detected outside the dependency constraint: Microsoft.CodeAnalysis.CSharp.Features 4.8.0 requires Microsoft.CodeAnalysis.CSharp (= 4.8.0), but the Microsoft.CodeAnalysis.CSharp 4.14.0 version has already been resolved."
This warning turns on Error when try to do Scaffold on Project
Scaffold-DbContext Name=ConnectionStrings:AzureConnection Microsoft.EntityFrameWorkCore.SqlServer -outputdir Models -context AssetCareDbContext -contextdir Repository -DataAnnotations -Force
Previously with .NET9 Scaffold works perfectly with this command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions