Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nuget version #1332

Merged
merged 2 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Replace type declaration's empty braces with semicolon ([RCS1251](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1251) ([PR](https://github.com/dotnet/roslynator/pull/1323), [PR](https://github.com/dotnet/roslynator/pull/1327))
- [TestFramework] Bump `MSTest.TestFramerk` to `3.1.1` ([PR](https://github.com/dotnet/roslynator/pull/1332))
- [TestFramework] Bump `xunit.assert` to `2.6.2` ([PR](https://github.com/dotnet/roslynator/pull/1332))

## [4.7.0] - 2023-12-03

Expand Down
4 changes: 2 additions & 2 deletions src/CommandLine/CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynatorCliRoslynVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="$(RoslynatorCliRoslynVersion)" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="$(RoslynatorCliRoslynVersion)" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="DotMarkdown" Version="0.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="DotMarkdown" Version="0.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLine/Commands/ListSymbolsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public override async Task<CommandResult> ExecuteAsync(ProjectOrSolution project
{
await using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read))
await using (var streamWriter = new StreamWriter(fileStream, Encodings.UTF8NoBom))
using (var jsonWriter = new JsonTextWriter(streamWriter))
await using (var jsonWriter = new JsonTextWriter(streamWriter))
{
string indentChars = format.IndentChars;

Expand Down
2 changes: 1 addition & 1 deletion src/Documentation/Documentation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Roslynator.Documentation.DocumentationGenerator</Description>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynatorCliRoslynVersion)" />
<PackageReference Include="DotMarkdown" Version="0.2.0" />
<PackageReference Include="DotMarkdown" Version="0.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Analyzers.Tests/Analyzers.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/CSharp.Tests/CSharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
24 changes: 12 additions & 12 deletions src/Tests/CSharp.Tests/ExpressionChainTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void TestExpressionChainEnumerator()
Assert.True(en.MoveNext() && en.Current == be2.Left);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -45,7 +45,7 @@ void M(string a, string b, string c, string d)
Assert.True(en.MoveNext() && en.Current == be2.Left);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -68,7 +68,7 @@ void M(string a, string b, string c, string d)

Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -92,7 +92,7 @@ void M(string a, string b, string c, string d)

Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -113,7 +113,7 @@ void M(string a, string b)
ExpressionChain.Enumerator en = new ExpressionChain(be, code.Spans[0]).GetEnumerator();

Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -134,7 +134,7 @@ void M(string a, string b)
ExpressionChain.Enumerator en = new ExpressionChain(be, code.Spans[0]).GetEnumerator();

Assert.True(en.MoveNext() && en.Current == be.Left);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -148,7 +148,7 @@ public static void TestExpressionChainReversedEnumerator()
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be2.Left);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -172,7 +172,7 @@ void M(string a, string b, string c)
Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(en.MoveNext() && en.Current == be2.Left);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -195,7 +195,7 @@ void M(string a, string b, string c, string d)

Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -219,7 +219,7 @@ void M(string a, string b, string c, string d)

Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(en.MoveNext() && en.Current == be2.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -240,7 +240,7 @@ void M(string a, string b)
ExpressionChain.Reversed.Enumerator en = new ExpressionChain(be, code.Spans[0]).Reverse().GetEnumerator();

Assert.True(en.MoveNext() && en.Current == be.Right);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand All @@ -261,7 +261,7 @@ void M(string a, string b)
ExpressionChain.Reversed.Enumerator en = new ExpressionChain(be, code.Spans[0]).Reverse().GetEnumerator();

Assert.True(en.MoveNext() && en.Current == be.Left);
Assert.True(!en.MoveNext());
Assert.False(en.MoveNext());
}

[Fact]
Expand Down
4 changes: 1 addition & 3 deletions src/Tests/CSharp.Tests/SyntaxKindTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,7 @@ public static void DetectNewSyntaxKinds()

if (unknownKinds is not null)
{
Assert.True(
false,
$"Unknown enum value(s) {string.Join(", ", unknownKinds.Select(f => $"'{f}'"))}.");
Assert.Fail($"Unknown enum value(s) {string.Join(", ", unknownKinds.Select(f => $"'{f}'"))}.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/CodeFixes.Tests/CodeFixes.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Core.Tests/Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Refactorings.Tests/Refactorings.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Testing.CSharp.Xunit/Testing.CSharp.Xunit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit.assert" Version="2.4.1" />
<PackageReference Include="xunit.assert" Version="2.6.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Workspaces.Core/Workspaces.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="$(RoslynatorRoslynVersion)" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down