Skip to content

With .NET 7.0 SDK, I cannot create .NET 6.0 web project, the target net6.0 can't be found. #39731

Closed
@Andy-Win

Description

@Andy-Win

Repro steps:

  1. Install latest main build VS from main-32123.28 (Run preinstall command first)
  2. Download .NET 7 SDK(7.0.100-alpha.1.22071.3) from main branch of https://github.com/dotnet/installer
  3. Open VS, apply feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
  4. Open Command Prompt and run"dotnet new mvc -f net6.0 -o Mvc60" to create ASP.NET Core 6.0 MVC project.

Expected Result
The project should be created successfully.

Actual Result:
image
image

dotnet --info
image

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-templates

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions