Skip to content

Commit d8765de

Browse files
committed
Bump up to 1.23.0-pre
1 parent 7f4c073 commit d8765de

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
32+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="[$(MicrosoftCodeAnalysisVersion)]" />
3333
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="[$(MicrosoftCodeAnalysisVersion)]" />
3434
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
3535
<PackageReference Include="Nerdbank.GitVersioning" Version="3.7.115">

src/compat/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<DefineConstants>$(DefineConstants);ROSLYN_LATEST</DefineConstants>
5-
<MicrosoftCodeAnalysisVersion>4.11.0</MicrosoftCodeAnalysisVersion>
5+
<MicrosoftCodeAnalysisVersion>4.14.0</MicrosoftCodeAnalysisVersion>
66
</PropertyGroup>
77

88
<Import Project="..\Directory.Build.props"/>

src/xunit.analyzers.tests/Fixes/X1000/ClassDataAttributeMustPointAtValidClassFixerTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,29 @@ public class TestClass {
107107
public void TestMethod(int _) { }
108108
}
109109
""";
110+
#if ROSLYN_LATEST // They seem to have removed the extra blank line somewhere between 4.11 and 4.14
111+
var afterV2 = """
112+
using System.Collections;
113+
using System.Collections.Generic;
114+
using Xunit;
115+
116+
public class TestData : IEnumerable<object[]> {
117+
TestData(int _) { }
118+
119+
public IEnumerator<object[]> GetEnumerator() => null;
120+
IEnumerator IEnumerable.GetEnumerator() => null;
121+
public TestData()
122+
{
123+
}
124+
}
125+
126+
public class TestClass {
127+
[Theory]
128+
[ClassData(typeof(TestData))]
129+
public void TestMethod(int _) { }
130+
}
131+
""";
132+
#else
110133
var afterV2 = """
111134
using System.Collections;
112135
using System.Collections.Generic;
@@ -129,6 +152,7 @@ public class TestClass {
129152
public void TestMethod(int _) { }
130153
}
131154
""";
155+
#endif
132156
var afterV3 = afterV2.Replace("ClassData(typeof(TestData))", "{|xUnit1050:ClassData(typeof(TestData))|}");
133157

134158
await Verify.VerifyCodeFixV2(before, afterV2, ClassDataAttributeMustPointAtValidClassFixer.Key_FixDataClass);

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.22.0",
3+
"version": "1.23.0-pre.{height}",
44
"nugetPackageVersion": {
55
"semVer": 2
66
},

0 commit comments

Comments
 (0)