How to add a trailing end of line to AttribueList using Roslyn CTP

One way to do this would to format your code and then modify it by adding trailing trivia to all property attribute lists. Something like:

var formattedUnit = (SyntaxNode)compUnit.Format(
    new FormattingOptions(false, 4, 4)).GetFormattedRoot();

formattedUnit = formattedUnit.ReplaceNodes(
    formattedUnit.DescendantNodes()
                 .OfType<PropertyDeclarationSyntax>()
                 .SelectMany(p => p.AttributeLists),
    (_, node) => node.WithTrailingTrivia(Syntax.Whitespace("\n")));

string result = formattedUnit.GetText().ToString();

Use it like below:

.WithTrailingTrivia(SyntaxFactory.ElasticCarriageReturnLineFeed)