From a31d4a7920839952d62f37e7e817a4a4b353747e Mon Sep 17 00:00:00 2001 From: discostu105 Date: Sun, 21 Feb 2016 23:38:13 +0100 Subject: [PATCH] fixed newlines --- .../AssemblyInfoFileGenerator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Compiler.Common/AssemblyInfoFileGenerator.cs b/src/Microsoft.DotNet.Compiler.Common/AssemblyInfoFileGenerator.cs index e93561d65..45e3e9302 100644 --- a/src/Microsoft.DotNet.Compiler.Common/AssemblyInfoFileGenerator.cs +++ b/src/Microsoft.DotNet.Compiler.Common/AssemblyInfoFileGenerator.cs @@ -59,7 +59,8 @@ namespace Microsoft.DotNet.Cli.Compiler.Common private static Dictionary GetProjectAttributes(AssemblyInfoOptions metadata) { - var attributes = new Dictionary() { + var attributes = new Dictionary() + { [typeof(AssemblyTitleAttribute)] = EscapeCharacters(metadata.Title), [typeof(AssemblyDescriptionAttribute)] = EscapeCharacters(metadata.Description), [typeof(AssemblyCopyrightAttribute)] = EscapeCharacters(metadata.Copyright), @@ -71,7 +72,8 @@ namespace Microsoft.DotNet.Cli.Compiler.Common }; // only .net 4.0+ compatible - if (metadata.TargetFrameworkVersion == null || metadata.TargetFrameworkVersion >= new Version(4, 0)) { + if (metadata.TargetFrameworkVersion == null || metadata.TargetFrameworkVersion >= new Version(4, 0)) + { attributes[typeof(TargetFrameworkAttribute)] = EscapeCharacters(metadata.TargetFramework); }; return attributes; @@ -89,4 +91,4 @@ namespace Microsoft.DotNet.Cli.Compiler.Common return str != null ? SymbolDisplay.FormatLiteral(str, quote: false) : null; } } -} \ No newline at end of file +}