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

[main] Update dependencies from dotnet/roslyn #81164

Merged
merged 36 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1cf30c6
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 25, 2023
3b0acbc
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 26, 2023
f6e5a4c
Disable extraneous diagnostic on LibraryImportGenerator.Unit.Tests.cs…
jkoritzinsky Jan 26, 2023
8033eff
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 27, 2023
4913d3b
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 28, 2023
0881f0b
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 29, 2023
b40b581
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 30, 2023
c67aa9d
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Jan 31, 2023
6c2f542
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 1, 2023
ce0e2c7
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 2, 2023
6177d27
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 3, 2023
b91c4f0
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 4, 2023
4781d51
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 5, 2023
51cb171
Suppress warning for code fixer
vitek-karas Feb 6, 2023
e0b6f4d
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 7, 2023
648cb8b
Merge branch 'main' into darc-main-5410199c-3511-41c9-8178-d0c10ae042d9
pavelsavara Feb 7, 2023
3bf856c
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 8, 2023
423cdaf
Merge branch 'main' into darc-main-5410199c-3511-41c9-8178-d0c10ae042d9
pavelsavara Feb 9, 2023
d391a58
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 9, 2023
2ec7756
Merge branch 'darc-main-5410199c-3511-41c9-8178-d0c10ae042d9' of http…
pavelsavara Feb 9, 2023
92d9e80
Merge branch 'main' into darc-main-5410199c-3511-41c9-8178-d0c10ae042d9
pavelsavara Feb 10, 2023
affcf1d
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 10, 2023
3a9cf6d
add references to Microsoft.Interop.SourceGeneration
pavelsavara Feb 10, 2023
d6e7cbf
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 11, 2023
e6ee1ae
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 12, 2023
98eb4cb
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 13, 2023
349d1e7
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 14, 2023
3328fda
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 15, 2023
ff2d719
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 16, 2023
9534241
Update TestClasses.Constructor.cs
marek-safar Feb 17, 2023
93ae7b5
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 17, 2023
3aab662
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 18, 2023
67ade48
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 19, 2023
9c6c227
Update TestClasses.Constructor.cs
marek-safar Feb 20, 2023
f849926
Update dependencies from https://github.com/dotnet/roslyn build 20230…
dotnet-maestro[bot] Feb 20, 2023
bd745e8
Add tracking issue
marek-safar Feb 20, 2023
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
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,17 @@
<Uri>https://github.com/dotnet/runtime-assets</Uri>
<Sha>4e0ae43f9b7b55ba3bd3ed5cf590da3f15b83f48</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-1.23073.4">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-2.23120.1">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-1.23073.4">
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-2.23120.1">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-1.23073.4">
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-2.23120.1">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23104.1">
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
Any tools that contribute to the design-time experience should use the MicrosoftCodeAnalysisVersion_LatestVS property above to ensure
they do not break the local dev experience.
-->
<MicrosoftCodeAnalysisCSharpVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.6.0-1.23073.4</MicrosoftNetCompilersToolsetVersion>
<MicrosoftCodeAnalysisCSharpVersion>4.6.0-2.23120.1</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.6.0-2.23120.1</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.6.0-2.23120.1</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>
<!--
For source generator support we need to target multiple versions of Roslyn in order to be able to run on older versions of Roslyn.
Expand Down
1 change: 1 addition & 0 deletions src/libraries/System.Console/src/System.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
<Reference Include="Microsoft.Win32.Primitives" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<Reference Include="System.Runtime.InteropServices.JavaScript" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/libraries/System.Net.Http/src/System.Net.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@
<Reference Include="System.Security.Cryptography" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<Reference Include="System.Runtime.InteropServices.JavaScript" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<Reference Include="System.Memory" />
</ItemGroup>
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'browser'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<Reference Include="System.Runtime.InteropServices.JavaScript" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\gen\JSImportGenerator\JSImportGenerator.csproj"
ReferenceOutputAssembly="false"
OutputItemType="Analyzer" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices\gen\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference Include="$(LibrariesProjectRoot)System.Runtime.InteropServices.JavaScript\gen\JSImportGenerator\JSImportGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<Nullable>enable</Nullable>
<TestRunRequiresLiveRefPack>true</TestRunRequiresLiveRefPack>
<!--
RS1036: A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>'
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.
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.
-->
<NoWarn>$(NoWarn);RS1036</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ public async Task TestClassWithDefaultCtorParams()
JsonTestHelper.AssertJsonEqual(json, await Serializer.SerializeWrapper(obj));
}

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

Assert.Equal(value, result); // Type is C# record that implements structural equality.
}

#endif
public class ClassWithDefaultCtorParams
{
public Point_2D_Struct_WithAttribute Struct { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,7 @@ public struct StructWithFourArgs
public StructWithFourArgs(int w, int x, int y, int z) => (W, X, Y, Z) = (w, x, y, z);
}

#if FIXED // https://github.com/dotnet/roslyn/issues/66900
public record ClassWithManyConstructorParameters(
int P000, int P001, int P002, int P003, int P004, int P005, int P006, int P007, int P008, int P009,
int P010, int P011, int P012, int P013, int P014, int P015, int P016, int P017, int P018, int P019,
Expand Down Expand Up @@ -2599,4 +2600,5 @@ public static ClassWithManyConstructorParameters Create()
P990: 990, P991: 991, P992: 992, P993: 993, P994: 994, P995: 995, P996: 996, P997: 997, P998: 998, P999: 999);
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ protected ConstructorTests_Metadata(JsonSerializerWrapper stringWrapper)
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
#endif
[JsonSerializable(typeof(ClassWithInvalidArray))]
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
[JsonSerializable(typeof(TypeWithEnumParameters))]
Expand Down Expand Up @@ -280,7 +282,9 @@ public ConstructorTests_Default(JsonSerializerWrapper jsonSerializer) : base(jso
[JsonSerializable(typeof(LargeType_IgnoredProp_Bind_Param))]
[JsonSerializable(typeof(ClassWithIgnoredSameType))]
[JsonSerializable(typeof(ClassWithDefaultCtorParams))]
#if FIXED // https://github.com/dotnet/roslyn/issues/66900
[JsonSerializable(typeof(ClassWithManyConstructorParameters))]
#endif
[JsonSerializable(typeof(ClassWithInvalidArray))]
[JsonSerializable(typeof(ClassWithInvalidDictionary))]
[JsonSerializable(typeof(TypeWithEnumParameters))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ protected override SyntaxNode[] GetAttributeArguments (ISymbol? attributableSymb
syntaxGenerator.LiteralExpression (diagnostic.Descriptor.Category));

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