File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
Description/DotNet/Compilation/CSharp Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 43
43
<AdditionalFiles Include =" $(MSBuildThisFileDirectory)..\stylecop.json" Link =" stylecop.json" />
44
44
</ItemGroup >
45
45
<ItemGroup >
46
- <PackageReference Include =" Microsoft.CodeAnalysis" Version =" 2.8.2 " />
47
- <PackageReference Include =" Microsoft.CodeAnalysis.Common" Version =" 2.8.2 " />
48
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 2.8.2 " />
46
+ <PackageReference Include =" Microsoft.CodeAnalysis" Version =" 3.3.1 " />
47
+ <PackageReference Include =" Microsoft.CodeAnalysis.Common" Version =" 3.3.1 " />
48
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp" Version =" 3.3.1 " />
49
49
</ItemGroup >
50
50
</Project >
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ public AsyncVoidAnalyzer()
27
27
28
28
public override void Initialize ( AnalysisContext context )
29
29
{
30
+ context . EnableConcurrentExecution ( ) ;
31
+ context . ConfigureGeneratedCodeAnalysis ( GeneratedCodeAnalysisFlags . None ) ;
30
32
context . RegisterSymbolAction ( AnalyzeSymbol , SymbolKind . Method ) ;
31
33
}
32
34
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
33
33
34
34
public override void Initialize ( AnalysisContext context )
35
35
{
36
+ context . EnableConcurrentExecution ( ) ;
37
+ context . ConfigureGeneratedCodeAnalysis ( GeneratedCodeAnalysisFlags . None ) ;
36
38
context . RegisterCompilationAction ( AnalyzeCompilation ) ;
37
39
}
38
40
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ private static string GetFullTypeName(ITypeSymbol type)
78
78
79
79
private static bool IsOrUsesAssemblyType ( ITypeSymbol typeSymbol , IAssemblySymbol assemblySymbol )
80
80
{
81
- if ( typeSymbol . ContainingAssembly == assemblySymbol )
81
+ if ( Equals ( typeSymbol . ContainingAssembly , assemblySymbol ) )
82
82
{
83
83
return true ;
84
84
}
Original file line number Diff line number Diff line change 43
43
<PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.Http" Version =" 3.0.5-10763" />
44
44
<PackageReference Include =" Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version =" 3.0.14" />
45
45
<PackageReference Include =" Microsoft.Build" Version =" 15.8.166" />
46
- <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 2.8.2 " />
46
+ <PackageReference Include =" Microsoft.CodeAnalysis.CSharp.Scripting" Version =" 3.3.1 " />
47
47
<PackageReference Include =" Microsoft.DotNet.PlatformAbstractions" Version =" 2.1.0" />
48
48
<PackageReference Include =" Microsoft.Extensions.Hosting.Abstractions" Version =" 3.0.0" />
49
49
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.2.0" />
You can’t perform that action at this time.
0 commit comments