Skip to content

Bad core generation on ef migrations add lc #35938

Open
@davhdavh

Description

@davhdavh

Bug description

Running ef migrations add with a migration with lower case migration names and warnings as errors, leaves the project in a unrecoverable state.

Your code

>dotnet ef migrations add test
Build started...
Build succeeded.
Done. To undo this action, use 'ef migrations remove'
> dotnet ef migrations remove
Build started...
Build failed. Use dotnet build to see the errors.



1>...\20250411090328_test.cs(8,26): Error CS8981: The type name 'test' only contains lower-cased ascii characters. Such names may become reserved for the language.
1>...\20250411090328_test.Designer.cs(16,19): Error CS8981: The type name 'test' only contains lower-cased ascii characters. Such names may become reserved for the language.

Stack traces


Verbose output


EF Core version

9.0.3

Database provider

NA

Target framework

.NET 9.0

Operating system

na

IDE

v17.13.4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions