Skip to content

chore(deps): update dependency csharpier.msbuild to 1.3.0#710

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier.msbuild-1.x
Jul 22, 2026
Merged

chore(deps): update dependency csharpier.msbuild to 1.3.0#710
renovate[bot] merged 1 commit into
mainfrom
renovate/csharpier.msbuild-1.x

Conversation

@renovate

@renovate renovate Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
CSharpier.MSBuild 1.2.61.3.0 age confidence

Release Notes

belav/csharpier (CSharpier.MSBuild)

v1.3.0

Compare Source

Breaking Changes

Change xml formatting to return error when it runs into syntax error so it is consistent with c# #​1854

Previously CSharpier treated an invalid xml file as a warning instead of an error. This was inconsistent with how it treated c# files.
Invalid c# or xml files are not treated as errors.
The --compilation-errors-as-warnings argument has been renamed to --syntax-errors-as-warnings and can be used to return warnings instead of errors when encountering invalid files.

What's Changed

Feature: Configurable whitespace handling for xml #​1790

CSharpier now supports two types of xml whitespace formatting strict or ignore.
By default all xml except xaml or axaml is treated as strict whitespace. See details

Feature: Move closing bracket for xml elements to the same line. #​1598

With strict xml whitespace handling, csharpier now keeps the closing bracket for an element on the same line instead of breaking it to a new line.

<!-- input & expected output -->
<ElementWithAttribute Attribute="AttributeValue__________________"
  >TextValue</ElementWithAttribute>

<!-- 1.2.6 -->
<ElementWithAttribute Attribute="AttributeValue__________________"
  >TextValue</ElementWithAttribute
>
Feature: Support for csharpier-ignore with XML formatter #​1788

CSharpier now supports csharpier-ignore in xml files. See details

Feature: Add MSBuild transitive and multi-target support #​1833

CSharpier.MSBuild can now work as a transitive dependency.

Feature: allow checking formatting with cache #​1830

The csharpier check command now supports a --use-cache option.

Feature: remove dependency on Microsoft.AspNetCore.App #​1508

Previously CSharpier required that Microsoft.AspNetCore.App be installed. CSharpier has been modified to use an HttpListener when it is run using server to remove the need for this dependency.

Fix: csharpier-ignore comment removes linespaces before block #​1867

CSharpier was removing blank lines before csharpier-ignore comments in some cases

// input and expected output
var x = 1;
    
// csharpier-ignore
var y=1;

/// 1.2.6
var x = 1;
// csharpier-ignore
var y=1;
Fix: Inconsistent indentation for raw string literals. #​1857

CSharpier was not consistently indenting raw string literals when they were inside of simple lambdas.

// input & expected output
CallMethod(() =>
{
    var someString = """
        SomeRawString
        """;
});

// 1.2.6
CallMethod(() =>
{
    var someString = """
    SomeRawString
    """;
});
Fix: case of modifier reorder with leading trivia #​1855

CSharpier was incorrectly reporting a syntax validation failure when it was reordering modifiers. This is now resolved.

// when this code is modified and the modifiers are reorderd it should not report a syntax validation failure.
public class ClassName
{
    // SomeComment
    override public int GetHashCode() => 0;
}
Fix: Xml breaks final element when it contains mixed content #​1841

CSharpier was breaking the end element in some cases when it should not be.

<!-- input & expected output -->
<HtmlTypeElement
  >Some long text to make things break <a href="http://url.com"
    >url.com</a> more text.</HtmlTypeElement>

<!-- 1.2.6 -->
<HtmlTypeElement
  >Some long text to make things break <a href="http://url.com"
    >url.com</a
  > more text.</HtmlTypeElement
>
Fix: Unable to ignore csharpier formatting within case statement group #​1824

CSharpier now supports csharpier-ignore comments within case statements.

switch (1)
{
    case 2:
        // csharpier-ignore
        var unformatted      = true;
        break;
}
Fix: Incorrect formatting for simple lambda expression with comment #​1147

CSharpier was indenting code for a simple lambda with a leading comment.

// input & expected output
this.Where___________________(
    // Comment
    x =>
    {
        return x;
    }
);

// 1.2.6
this.Where___________________(
    // Comment
    x =>
{
    return x;
});
Fix: Ignores files it shouldn't ignore when negative patterns are used #​1803

Fixed a couple more edgecases with CSharpier not handling negative ignore patterns the same way that git does

Fix: Tolerate missing directories when formatting from stdin #​1848

CSharpier was throwing a DirectoryNotFoundException if it were passed a path via --stdin-path with a directory that did not exist.

Fix: Stop .gitignore walk at git worktree boundary #​1860

When CSharpier walks up the target directory looking for .gitignore files it stops when encountering a .git directory. However in a git worktree there is no directory, .git is a file. This change ensures CSharpier stops when encountering a .git file so that CSharpier behaves the same in a worktree.

perf: cache IgnoreWithBasePath #​1758
perf: fast comparison using FullSpan and source code #​1737
perf: optimise SyntaxNodeComparer #​1730
perf: set capacity of List in MembersForcedLine #​1709
perf: use Stack.Peek to reduce Pop and Push churn #​1708
perf: add Doc.Null check to Argument avoids Concat creation #​1706
perf: use overload for Any( SyntaxTriviaList to prevent allocations #​1703

Full Changelog: belav/csharpier@1.2.6...1.3.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependency:nuget Indicates a pull request related to updating or managing NuGet package dependencies. label Jun 12, 2026
@renovate
renovate Bot enabled auto-merge (squash) June 12, 2026 01:31
@renovate
renovate Bot force-pushed the renovate/csharpier.msbuild-1.x branch from 075df19 to 202a429 Compare June 18, 2026 19:24
@renovate
renovate Bot force-pushed the renovate/csharpier.msbuild-1.x branch 2 times, most recently from 73b7c5e to 0383b41 Compare July 22, 2026 17:46
@renovate
renovate Bot force-pushed the renovate/csharpier.msbuild-1.x branch from 0383b41 to d9c5812 Compare July 22, 2026 18:50

@samtrion samtrion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval by NetEvolve.Socks (v1.0.0.0)

@renovate
renovate Bot merged commit 8e28ff1 into main Jul 22, 2026
11 checks passed
@renovate
renovate Bot deleted the renovate/csharpier.msbuild-1.x branch July 22, 2026 19:18
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.94%. Comparing base (94ae9b1) to head (d9c5812).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #710   +/-   ##
=======================================
  Coverage   77.94%   77.94%           
=======================================
  Files          13       13           
  Lines         340      340           
  Branches       92       92           
=======================================
  Hits          265      265           
  Misses         57       57           
  Partials       18       18           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency:nuget Indicates a pull request related to updating or managing NuGet package dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant