We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da070ac commit 6cfcbd9Copy full SHA for 6cfcbd9
src/Neo.Compiler.CSharp/CompilationEngine.cs
@@ -172,8 +172,9 @@ public Compilation GetCompilation(string csproj)
172
{
173
string folder = Path.GetDirectoryName(csproj)!;
174
string obj = Path.Combine(folder, "obj");
175
+ string binSc = Path.Combine(Path.Combine(folder, "bin"), "sc");
176
HashSet<string> sourceFiles = Directory.EnumerateFiles(folder, "*.cs", SearchOption.AllDirectories)
- .Where(p => !p.StartsWith(obj))
177
+ .Where(p => !p.StartsWith(obj) && ! p.StartsWith(binSc))
178
.GroupBy(Path.GetFileName)
179
.Select(g => g.First())
180
.ToHashSet(StringComparer.OrdinalIgnoreCase);
0 commit comments