Skip to content

Commit

Permalink
Revert "[main] Update dependencies from dotnet/roslyn (#81164)"
Browse files Browse the repository at this point in the history
This reverts commit bbbc73e.
  • Loading branch information
hoyosjs authored Feb 22, 2023
1 parent ec2859d commit ff0bd7c
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 30 deletions.
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,17 @@
<Uri>https://github.com/dotnet/runtime-assets</Uri>
<Sha>3a8fb28f12af0c2c0b9eace35afafd689437c39e</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-2.23120.1">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.6.0-1.23073.4">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-2.23120.1">
<Dependency Name="Microsoft.CodeAnalysis" Version="4.6.0-1.23073.4">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-2.23120.1">
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="4.6.0-1.23073.4">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>4190056e0126f206c64439275fbf43a54dd31067</Sha>
<Sha>6acaa7b7c0efea8ea292ca26888c0346fbf8b0c1</Sha>
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.3.5-beta1.23117.2">
<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-2.23120.1</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.6.0-2.23120.1</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.6.0-2.23120.1</MicrosoftNetCompilersToolsetVersion>
<MicrosoftCodeAnalysisCSharpVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisCSharpVersion>
<MicrosoftCodeAnalysisVersion>4.6.0-1.23073.4</MicrosoftCodeAnalysisVersion>
<MicrosoftNetCompilersToolsetVersion>4.6.0-1.23073.4</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: 0 additions & 1 deletion src/libraries/System.Console/src/System.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@
<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: 0 additions & 1 deletion src/libraries/System.Net.Http/src/System.Net.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@
<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,7 +44,6 @@
<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,7 +81,8 @@
</ItemGroup>

<ItemGroup>
<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" />
<ProjectReference Include="..\gen\JSImportGenerator\JSImportGenerator.csproj"
ReferenceOutputAssembly="false"
OutputItemType="Analyzer" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
<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,7 +1431,6 @@ 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 @@ -1442,7 +1441,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,7 +2392,6 @@ 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 @@ -2600,5 +2599,4 @@ 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,9 +140,7 @@ 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 @@ -282,9 +280,7 @@ 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,9 +44,7 @@ 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

0 comments on commit ff0bd7c

Please sign in to comment.