dotnet / dotnet/aspnetcore

Scaffolding is Broken in .NET 11

Open
#65,746 1 comment 0 reactions 0 assignees View on GitHub
area-identity feature-scaffolding
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Scaffolding is broken in preview 1 of .NET 11

1. I cannot scaffold .NET Identity in a .NET 11 project
2. I cannot add a new area in .NET 11 project

### Expected Behavior

It should scaffold .NET Identity or add a new Area in .NET MVC Project

### Steps To Reproduce

Create a new .NET 11 MVC Project without authentication (2 bugs with scaffolding)

1. Right click on project -> Add -> New Scaffolded Item -> Identity
It gives this Error

There was an error running the selected code generator:
'Object reference not set to an instance of an object.'

2. Right click on project ->Add -> New Scaffolded Item -> MVC Area -> Give any name and press enter

Error
There was an error running the selected code generator:
'Scaffolding does not support project target framework '11.0''

### Exceptions (if any)

_No response_

### .NET Version

11.0.100-preview.1.26104.118

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.