Skip to content

Commit f7c2f7f

Browse files
committed
Shadow copy analyzer assemblies
1 parent 348aed4 commit f7c2f7f

File tree

6 files changed

+1052
-51
lines changed

6 files changed

+1052
-51
lines changed

src/SharpIDE.Application/Features/Analysis/CustomMsBuildProjectLoader.cs

Lines changed: 0 additions & 51 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Microsoft.CodeAnalysis.Diagnostics;
6+
7+
namespace SharpIDE.Application.Features.Analysis.ProjectLoader;
8+
9+
public partial class CustomMsBuildProjectLoader
10+
{
11+
private sealed partial class CustomWorker
12+
{
13+
private sealed class AnalyzerReferencePathComparer : IEqualityComparer<AnalyzerReference?>
14+
{
15+
public static AnalyzerReferencePathComparer Instance = new();
16+
17+
private AnalyzerReferencePathComparer() { }
18+
19+
public bool Equals(AnalyzerReference? x, AnalyzerReference? y)
20+
=> string.Equals(x?.FullPath, y?.FullPath, StringComparison.OrdinalIgnoreCase);
21+
22+
public int GetHashCode(AnalyzerReference? obj)
23+
=> obj?.FullPath?.GetHashCode() ?? 0;
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)