dotnet ef dbcontext scaffold on Mac creates line ending differences
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
### The Command
When I run the following command on Windows, any lines that have a blank line end with CRLF CRLF
```
dotnet ef dbcontext scaffold ...
```
When I run that same command on a Mac, any lines that have a blank line end with CRLF LF
I saw this because git kept showing changes in the files on those types of lines. Any lines that have something on them, seem to be fine. It is only those lines that are blank have just the LF as the blank.
Those lines should behave like on Window where all lines end in CRLF.
EDIT: As roji pointed out below I shouldn't have said they should behave like Windows. They should behave consistently, however, and if the tool is in control of this, then maybe make it consistent across platforms and always make all lines end in CRLF? If not, then always do LF only on mac, but NOT mixed. Then I can control it via git.
### Versions
EF Core version: 7.0.1
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL
Target framework: .NET 7.0
Operating system: MacOS 12.6
IDE: Visual Studio 2022 17.4
### Images

Contributor guide
Assessment
This issue has not been assessed yet.