Skip to content

Commit ad70fe7

Browse files
[main] Update dependencies from dotnet/roslyn-analyzers (#94169)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
1 parent 5429833 commit ad70fe7

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@
374374
<Uri>https://github.com/dotnet/roslyn</Uri>
375375
<Sha>5d09d2ed4ae24ed3c64aa487f606cea326fef378</Sha>
376376
</Dependency>
377-
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0-beta1.23523.1">
377+
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0-beta1.23579.3">
378378
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
379-
<Sha>b4ed6a3093cfd3c8d353214ce97aaa7d24cf2df1</Sha>
379+
<Sha>d0e4558fd0d73794dcb6eb4d46c12aa57303b69c</Sha>
380380
</Dependency>
381-
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0-preview.23523.1">
381+
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0-preview.23579.3">
382382
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>
383-
<Sha>b4ed6a3093cfd3c8d353214ce97aaa7d24cf2df1</Sha>
383+
<Sha>d0e4558fd0d73794dcb6eb4d46c12aa57303b69c</Sha>
384384
</Dependency>
385385
<Dependency Name="Microsoft.DotNet.ApiCompat.Task" Version="9.0.100-alpha.1.23551.3">
386386
<Uri>https://github.com/dotnet/sdk</Uri>

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
</ItemGroup>
3232
<PropertyGroup>
3333
<!-- dotnet/roslyn-analyzers dependencies -->
34-
<MicrosoftCodeAnalysisAnalyzersVersion>3.11.0-beta1.23523.1</MicrosoftCodeAnalysisAnalyzersVersion>
35-
<MicrosoftCodeAnalysisNetAnalyzersVersion>9.0.0-preview.23523.1</MicrosoftCodeAnalysisNetAnalyzersVersion>
34+
<MicrosoftCodeAnalysisAnalyzersVersion>3.11.0-beta1.23579.3</MicrosoftCodeAnalysisAnalyzersVersion>
35+
<MicrosoftCodeAnalysisNetAnalyzersVersion>9.0.0-preview.23579.3</MicrosoftCodeAnalysisNetAnalyzersVersion>
3636
<!-- dotnet/roslyn dependencies -->
3737
<!--
3838
These versions should not be used by any project that contributes to the design-time experience in VS, such as an analyzer, code-fix, or generator assembly.

src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/AttributeForwarding.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ partial class C
3434
[LibraryImportAttribute("DoesNotExist")]
3535
public static partial S Method1();
3636
}
37-
37+
3838
[NativeMarshalling(typeof(Marshaller))]
3939
struct S
4040
{
4141
}
42-
42+
4343
struct Native
4444
{
4545
}
46-
46+
4747
[CustomMarshaller(typeof(S), MarshalMode.Default, typeof(Marshaller))]
4848
static class Marshaller
4949
{
5050
public static Native ConvertToUnmanaged(S s) => default;
51-
51+
5252
public static S ConvertToManaged(Native n) => default;
5353
}
5454
""";
@@ -242,21 +242,21 @@ partial class C
242242
[LibraryImportAttribute("DoesNotExist")]
243243
public static partial S Method1();
244244
}
245-
245+
246246
[NativeMarshalling(typeof(Marshaller))]
247247
struct S
248248
{
249249
}
250-
250+
251251
struct Native
252252
{
253253
}
254-
254+
255255
[CustomMarshaller(typeof(S), MarshalMode.Default, typeof(Marshaller))]
256256
static class Marshaller
257257
{
258258
public static Native ConvertToUnmanaged(S s) => default;
259-
259+
260260
public static S ConvertToManaged(Native n) => default;
261261
}
262262
""";
@@ -436,7 +436,9 @@ private static IMethodSymbol GetGeneratedPInvokeTargetFromCompilation(Compilatio
436436
.DescendantNodes().OfType<LocalFunctionStatementSyntax>()
437437
.ToList();
438438
LocalFunctionStatementSyntax innerDllImport = Assert.Single(localFunctions);
439+
#pragma warning disable RS1039 // This call to 'SemanticModel.GetDeclaredSymbol()' will always return 'null' https://github.com/dotnet/roslyn-analyzers/issues/7061
439440
IMethodSymbol targetMethod = (IMethodSymbol)model.GetDeclaredSymbol(innerDllImport)!;
441+
#pragma warning restore RS1039 // This call to 'SemanticModel.GetDeclaredSymbol()' will always return 'null'
440442
return targetMethod;
441443
}
442444

0 commit comments

Comments
 (0)