All Versions
23
Latest Version
Avg Release Cycle
-
Latest Release
-

Changelog History
Page 1

  • v0.20.0 Changes

    What's Changed

    ๐Ÿ‘Œ Improve Tuple formatting #735

    Tuples would break poorly in some cases

    // 0.19.2
    
    public async Task<(ILookup<string, int> someLookup, ILookup<int, string> reverseLookup, ILookup<
            string,
            ClassName
        > thirdLookup)> CreateLookups()
    {
        return (null, null);
    }
    
    public void TuplesAsInput(
        (int myInt, string myString, ClassName myClassNameInstance, Dictionary<
            int,
            string
        > wordList) inputArgs
    )
    {
        // do something
    }
    
    // 0.20.0
    public async Task<(
        ILookup<string, int> someLookup,
        ILookup<int, string> reverseLookup,
        ILookup<string, ClassName> thirdLookup
    )> CreateLookups()
    {
      return (null, null);
    }
    
    public void TuplesAsInput(
        (
            int myInt,
            string myString,
            ClassName myClassNameInstance,
            Dictionary<int, string> wordList
        ) inputArgs
     )
     {
       // do something
     }
    

    Thanks go to @BenjaBobs for reporting the bug.

    Full Changelog: https://github.com/belav/csharpier/compare/0.19.2...0.20.0

  • v0.19.2 Changes

    What's Changed

    .NET Tool Crashes When Run Concurrently #728

    ๐Ÿ›  Fixed another edge case with running csharpier concurrently.

    Thanks go to @Kurt-von-Laven for reporting the bug.

    Full Changelog: https://github.com/belav/csharpier/compare/0.19.1...0.19.2

  • v0.19.1 Changes

    What's Changed

    CSharpier crashes when run multiple times simultaneously #728

    The new caching for CSharpier didn't properly handle multiple CSharpier processes formatting at the same time. This is most common when using CSharpier.MsBuild in a solution with multiple projects.

    Thanks go to @pingzing for reporting the bug.

    Full Changelog: https://github.com/belav/csharpier/compare/0.19.0...0.19.1

  • v0.19.0 Changes

    What's Changed

    โž• Adding a cache to speed up formatting. #692

    CSharpier now caches information about files that it has formatted to speed up subsequent runs.
    0๏ธโƒฃ By default the following are used as cache keys and a file is only formatted if one of them has changed.

    • CSharpier Version
    • CSharpier Options
    • Content of the file

    The cache is stored at [LocalApplicationData]/CSharpier/.formattingCache.

    Ignore node_modules #699

    CSharpier now ignores any files within a node_modules folder.

    Thanks go to @RichiCoder1 for the suggestion and @SubjectAlpha for the implementation.

    Extra space before curly brace in array initializer #693

    // 0.18.0
    public class ClassName
    {
        public int[] SomeArray { get; set; } =  { 1, 2, 3 };
    }
    // 0.19.0
    public class MyClass
    {
        public int[] SomeArray { get; set; } = { 1, 2, 3 };
    }
    
    

    Thanks go to @TiraelSedai for reporting the bug.

    Full Changelog: https://github.com/belav/csharpier/compare/0.18.0...0.19.0

  • v0.18.0 Changes

    What's Changed

    ๐ŸŽ‰ Initial C# 11 support #686

    CSharpier can format the following c# 11 features

    • Raw string literals
    • Generic attributes
    • Static abstract members in interfaces
    • Newlines in string interpolation expressions CSharpier will leave existing new lines within expressions and not add new ones
    • List Patterns
    • UTF8 string literals
    • Unsigned right shift operator
    • Checked operator
    • Generic math

    ๐Ÿ‘‰ use relative file path in CommandLineFormatter #680

    CSharpier now outputs relative or absolute file paths so that they are clickable in terminals.

    dotnet csharpier .
    
  • v0.17.0 Changes

    What's Changed

    • MSBuild Task target too late? Breakpoints are not hit #674
    • Excessive indent level with lambda as the only method call argument #669
    • Empty (or malformed) .csproj file will cause csharpier to fail. #665
    • #endif retains extra blank lines #660
    • Option for indentation #645
    • Small bug with formatting LINQ queries with multiple orderby fields #643
    • Consistently Indent By 4 Spaces #617
    • Conditional access edge cases #603
    • ๐Ÿ‘Œ Improve formatting for casting #407

    Full Changelog: https://github.com/belav/csharpier/compare/0.16.0...0.17.0

  • v0.16.0 Changes

    What's Changed

    • ๐Ÿ›  fix: ignore file detection when directory contains period #634
    • Format switch statement consistently with other code. #624
    • CodeFormatter should accept SyntaxTree #621
    • โž• Add support for netstandard 2.0 to CSharpier.Core #619
    • ๐Ÿ’… Indent c style multiline comments correctly when they switch indentation. #606
    • Member access should break #600
    • โš  SuppressNullableWarningExpression ( !. ) does not break consistenly #596
    • Turn CSharpier.com into a proper website. #505

    Full Changelog: https://github.com/belav/csharpier/compare/0.15.1...0.16.0

  • v0.15.1 Changes

    What's Changed

    • Set CSharpier.MsBuild as DevelopmentDependency. #607

    Full Changelog: https://github.com/belav/csharpier/compare/0.15.0...0.15.1

  • v0.15.0 Changes

    ๐Ÿ’ฅ Breaking Changes

    • CSharpier.MsBuild now requires .NET6 #565

    What's Changed

    • .csharpierignore causes csharpier to be significantly slower #594
    • ๐Ÿ‘Œ Support for // csharpier-ignore #581
    • Multiline comments are not properly indented. #580
    • Generics + ObjectCreationExpression should break consistently #578
    • ๐Ÿšš Extra blank lines should be removed at the end of a method #575
    • Null conditional operator does not break consistently #561
    • Enum members should follow the rules for new lines #553

    Full Changelog: https://github.com/belav/csharpier/compare/0.14.0...0.15.0

  • v0.14.0 Changes

    What's Changed

    • File with no preprocessor symbols formats twice. #555
    • A namespace with assembly attribute and using causes two newlines #551
    • Wrapping arithmetic expressions not stacked/chopped down #547
    • ๐Ÿ‘‰ Use UTF8 for piping in/out to CLI to support unicode characters #545

    Full Changelog: https://github.com/belav/csharpier/compare/0.13.0...0.14.0