Skip to content

Commit 6cfcbd9

Browse files
committed
do not include .cs in bin/sc
1 parent da070ac commit 6cfcbd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Neo.Compiler.CSharp/CompilationEngine.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ public Compilation GetCompilation(string csproj)
172172
{
173173
string folder = Path.GetDirectoryName(csproj)!;
174174
string obj = Path.Combine(folder, "obj");
175+
string binSc = Path.Combine(Path.Combine(folder, "bin"), "sc");
175176
HashSet<string> sourceFiles = Directory.EnumerateFiles(folder, "*.cs", SearchOption.AllDirectories)
176-
.Where(p => !p.StartsWith(obj))
177+
.Where(p => !p.StartsWith(obj) && ! p.StartsWith(binSc))
177178
.GroupBy(Path.GetFileName)
178179
.Select(g => g.First())
179180
.ToHashSet(StringComparer.OrdinalIgnoreCase);

0 commit comments

Comments
 (0)