diff --git a/src/Common/CustomAttributes/GenericBreakingChangeAttribute.cs b/src/Common/CustomAttributes/GenericBreakingChangeAttribute.cs index 5b8d55fa33..0df9648a92 100644 --- a/src/Common/CustomAttributes/GenericBreakingChangeAttribute.cs +++ b/src/Common/CustomAttributes/GenericBreakingChangeAttribute.cs @@ -129,9 +129,9 @@ public string GetBreakingChangeTextFromAttribute(Type type, bool withCmdletName) public void PrintCustomAttributeInfo(Type type, bool withCmdletName, Action writeOutput) { if (!withCmdletName) { - if (!GetAttributeSpecificMessage().StartsWith("\r\n")) + if (!GetAttributeSpecificMessage().StartsWith(Environment.NewLine)) { - writeOutput("\r\n"); + writeOutput(Environment.NewLine); } writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage())); } else