Scaffolding fails with Central Package Managment (Microsoft.Build.CentralPackageVersions)
- Dominant language
- C#
- Stars
- 818
- Forks
- 260
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 10
Description
## File a bug
Visual Studio 2022
Add / View / Razor View / ...
When scaffolding it shows "updating the dependency information" which then fails accordingliy with this error:
```
1>C:\Repositories\MinimalApi\MinimalApi\Apophis.csproj : error : The package reference 'Microsoft.VisualStudio.Web.CodeGeneration.Design' should not specify a version. Please specify the version in 'C:\Repositories\MinimalApi\Packages.props' or set VersionOverride to override the centrally defined version.
```
### Include your code
```xml
net6.0
```
It always changes the version part back to the failing PackageReference
```xml
```
###version information
This happens with all preview version I tried, I did not try with VS2019 or .NET 5
Contributor guide
Assessment
This issue has not been assessed yet.