public static class Program
private const int WrapCommentLineAfter = 80;
private const string GenerationInfo = "In SDK-style projects such as this one, several assembly attributes that were historically defined in this file are now automatically added during build and populated with values defined in project properties. For details of which attributes are included and how to customise this process see: https://aka.ms/assembly-info-properties";
private const string ComVisibleInfo = "Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComVisible attribute to true on that type.";
private const string GuidInfo = "The following GUID is for the ID of the typelib if this project is exposed to COM.";
public static void Main(string[] args)
for (int i = 1; i < 11; i++)
for (int i = 1; i < 11; i++)
Console.Write("1234567890");
Console.Write(WrapComment(GenerationInfo, "// "));
Console.Write(WrapComment(ComVisibleInfo, "// "));
Console.Write(WrapComment(GuidInfo, "// "));
Console.Write(WrapComment(GenerationInfo, "' "));
Console.Write(WrapComment(ComVisibleInfo, "' "));
Console.Write(WrapComment(GuidInfo, "' "));
private static string WrapComment(string text, string commentPrefix)
StringBuilder sb = new StringBuilder();
sb.Append(commentPrefix);
int column = commentPrefix.Length;
if (char.IsWhiteSpace(c) && column > WrapCommentLineAfter)
sb.Append(commentPrefix);
column = commentPrefix.Length;