-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Describe the bug
The file named e.g. .NETStandard,Version=v2.0.AssemblyAttributes.cs
in a project's $(IntermediateOutputPath)
has mixed line endings.
I'm sure this has caused zero problems for anyone else, but my tooling currently has a filter for **/obj/**
to suppress false positives.
To Reproduce
$> dotnet new console
[...]
$> dotnet build
[...]
$> cat -A obj/Debug/net8.0/.NETCoreApp\,Version\=v8.0.AssemblyAttributes.cs
// <autogenerated />^M$
using System;^M$
using System.Reflection;^M$
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]$
Note the missing CR before the final LF—or should I say, the CRLFs in the boilerplate at the top, since this is Linux and Environment.NewLine
is just LF.
This isn't the case with *.AssemblyInfo.cs
i.e. <AssemblyAttribute Include/>
.
Further technical details
$ dotnet --list-sdks
8.0.300 [/nix/store/8y83na7h81fw5kr1msmjc7rvx329djp0-dotnet-sdk-8.0.300/sdk]