MVC Bootstrap 5 scaffolding for Edit view uses obsolete .form-group class
Open
area-scaffolding
customer-reported
Triage-Approved
- Dominant language
- C#
- Stars
- 818
- Forks
- 260
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 10
Description
Microsoft.VisualStudio.Web.CodeGeneration.Design version: 6.0.8
Target framework: .NET 6.0
Operating system: Windows 10
IDE: Visual Studio 2022 17.3.0
When scaffolding an Edit view, the generated cshtml includes the .form-group class which has been removed from Bootstrap 5:
https://getbootstrap.com/docs/5.0/migration/
`Breaking: Dropped form-specific layout classes for our grid system. Use our grid and utilities instead of .form-group, .form-row, or .form-inline.`
This means the spacing isn't correct on the generated HTML
```html
```
Contributor guide
Assessment
This issue has not been assessed yet.