Skip to content

Commit bbbc73e

Browse files
dotnet-maestro[bot]jkoritzinskyvitek-karaspavelsavaramarek-safar
authored
[main] Update dependencies from dotnet/roslyn (#81164)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com> Co-authored-by: vitek-karas <10670590+vitek-karas@users.noreply.github.com> Co-authored-by: pavelsavara <pavel.savara@gmail.com> Co-authored-by: Marek Safar <marek.safar@gmail.com>
1 parent a9e2538 commit bbbc73e

File tree

11 files changed

+30
-13
lines changed

11 files changed

+30
-13
lines changed

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,17 @@
324324
<Uri>https://github.com/dotnet/runtime-assets</Uri>
325325
<Sha>3a8fb28f12af0c2c0b9eace35afafd689437c39e</Sha>
326326
</Dependency>
327-
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-1.23073.4">
327+
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-2.23120.1">
328328
<Uri>https://github.com/dotnet/roslyn</Uri>
329-
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
329+
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
330330
</Dependency>
331-
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-1.23073.4">
331+
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-2.23120.1">
332332
<Uri>https://github.com/dotnet/roslyn</Uri>
333-
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
333+
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
334334
</Dependency>
335-
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-1.23073.4">
335+
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-2.23120.1">
336336
<Uri>https://github.com/dotnet/roslyn</Uri>
337-
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
337+
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
338338
</Dependency>
339339
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23117.2">
340340
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
Any tools that contribute to the design-time experience should use the MicrosoftCodeAnalysisVersion_LatestVS property above to ensure
4141
they do not break the local dev experience.
4242
-->
43-
<MicrosoftCodeAnalysisCSharpVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisCSharpVersion>
44-
<MicrosoftCodeAnalysisVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisVersion>
45-
<MicrosoftNetCompilersToolsetVersion>4.6.0-1.23073.4</MicrosoftNetCompilersToolsetVersion>
43+
<MicrosoftCodeAnalysisCSharpVersion>4.6.0-2.23120.1</MicrosoftCodeAnalysisCSharpVersion>
44+
<MicrosoftCodeAnalysisVersion>4.6.0-2.23120.1</MicrosoftCodeAnalysisVersion>
45+
<MicrosoftNetCompilersToolsetVersion>4.6.0-2.23120.1</MicrosoftNetCompilersToolsetVersion>
4646
</PropertyGroup>
4747
<!--
4848
For source generator support we need to target multiple versions of Roslyn in order to be able to run on older versions of Roslyn.

src/libraries/System.Console/src/System.Console.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
<Reference Include="Microsoft.Win32.Primitives" />
271271
</ItemGroup>
272272
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
273+
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
273274
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
274275
<Reference Include="System.Runtime.InteropServices.JavaScript" />
275276
</ItemGroup>

src/libraries/System.Net.Http/src/System.Net.Http.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@
468468
<Reference Include="System.Security.Cryptography" />
469469
</ItemGroup>
470470
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
471+
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
471472
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
472473
<Reference Include="System.Runtime.InteropServices.JavaScript" />
473474
</ItemGroup>

src/libraries/System.Net.WebSockets.Client/src/System.Net.WebSockets.Client.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<Reference Include="System.Memory" />
4545
</ItemGroup>
4646
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
47+
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
4748
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
4849
<Reference Include="System.Runtime.InteropServices.JavaScript" />
4950
</ItemGroup>

src/libraries/System.Runtime.InteropServices.JavaScript/src/System.Runtime.InteropServices.JavaScript.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@
8181
</ItemGroup>
8282

8383
<ItemGroup>
84-
<ProjectReference Include="..\gen\JSImportGenerator\JSImportGenerator.csproj"
85-
ReferenceOutputAssembly="false"
86-
OutputItemType="Analyzer" />
84+
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
85+
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
8786
</ItemGroup>
8887
</Project>

src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/LibraryImportGenerator.Unit.Tests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
55
<Nullable>enable</Nullable>
66
<TestRunRequiresLiveRefPack>true</TestRunRequiresLiveRefPack>
7+
<!--
8+
RS1036: A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>'
9+
The only analyzer defined here is a mock analyzer meant to act similarly to our source generator. It is not shipping and is only used in unit tests.
10+
We don't want to enable the rest of the "good behaving analyzer" API rules on our tests as it is test code and not shipping code.
11+
-->
12+
<NoWarn>$(NoWarn);RS1036</NoWarn>
713
</PropertyGroup>
814

915
<ItemGroup>

src/libraries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,7 @@ public async Task TestClassWithDefaultCtorParams()
14311431
JsonTestHelper.AssertJsonEqual(json, await Serializer.SerializeWrapper(obj));
14321432
}
14331433

1434+
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
14341435
[Fact]
14351436
public async Task TestClassWithManyConstructorParameters()
14361437
{
@@ -1441,7 +1442,7 @@ public async Task TestClassWithManyConstructorParameters()
14411442

14421443
Assert.Equal(value, result); // Type is C# record that implements structural equality.
14431444
}
1444-
1445+
#endif
14451446
public class ClassWithDefaultCtorParams
14461447
{
14471448
public Point_2D_Struct_WithAttribute Struct { get; }

src/libraries/System.Text.Json/tests/Common/TestClasses/TestClasses.Constructor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,6 +2392,7 @@ public struct StructWithFourArgs
23922392
public StructWithFourArgs(int w, int x, int y, int z) => (W, X, Y, Z) = (w, x, y, z);
23932393
}
23942394

2395+
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
23952396
public record ClassWithManyConstructorParameters(
23962397
int P000, int P001, int P002, int P003, int P004, int P005, int P006, int P007, int P008, int P009,
23972398
int P010, int P011, int P012, int P013, int P014, int P015, int P016, int P017, int P018, int P019,
@@ -2599,4 +2600,5 @@ public static ClassWithManyConstructorParameters Create()
25992600
P990: 990, P991: 991, P992: 992, P993: 993, P994: 994, P995: 995, P996: 996, P997: 997, P998: 998, P999: 999);
26002601
}
26012602
}
2603+
#endif
26022604
}

src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Tests/Serialization/ConstructorTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ protected ConstructorTests_Metadata(JsonSerializerWrapper stringWrapper)
140140
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
141141
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
142142
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
143+
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
143144
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
145+
#endif
144146
[JsonSerializable(typeof(ClassWithInvalidArray))]
145147
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
146148
[JsonSerializable(typeof(TypeWithEnumParameters))]
@@ -280,7 +282,9 @@ public ConstructorTests_Default(JsonSerializerWrapper jsonSerializer) : base(jso
280282
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
281283
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
282284
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
285+
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
283286
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
287+
#endif
284288
[JsonSerializable(typeof(ClassWithInvalidArray))]
285289
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
286290
[JsonSerializable(typeof(TypeWithEnumParameters))]

src/tools/illink/src/ILLink.CodeFix/UnconditionalSuppressMessageCodeFixProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ protected override SyntaxNode[] GetAttributeArguments (ISymbol? attributableSymb
4444
syntaxGenerator.LiteralExpression (diagnostic.Descriptor.Category));
4545

4646
// Identifier of the analysis rule the attribute applies to
47+
#pragma warning disable RS1035 // Do not use APIs banned for analyzers - https://github.com/dotnet/linker/issues/3197
4748
var ruleTitle = diagnostic.Descriptor.Title.ToString (CultureInfo.CurrentUICulture);
49+
#pragma warning restore RS1035 // Do not use APIs banned for analyzers
4850
var ruleId = syntaxGenerator.AttributeArgument (
4951
syntaxGenerator.LiteralExpression (
5052
string.IsNullOrWhiteSpace (ruleTitle) ? diagnostic.Id : $"{diagnostic.Id}:{ruleTitle}"));

0 commit comments

Comments
 (0)