dotnet / dotnet/templating

dotnet new creates files with CRLF line endings on linux

Open
#1,248 35 comments 43 reactions 0 assignees View on GitHub
area: authoring feature Priority:1 triage:transfer-to-sdk triaged
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

_From @kromatic on September 21, 2017 20:58_

## Steps to reproduce

Run `dotnet new classlib` in new project folder.

## Expected behavior

On Linux, this should create Class1.cs and .csproj files with LF line endings.

## Actual behavior

Class1.cs and the .csproj file are both created with CRLF line endings. (Files in bin and obj folders appear to all have the correct LF line endings.)

## Environment data
`dotnet --info` output:

.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9

Runtime Environment:
OS Name: fedora
OS Version: 26
OS Platform: Linux
RID: fedora.26-x64
Base Path: /usr/share/dotnet/sdk/2.0.0/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

_Copied from original issue: dotnet/cli#7695_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.