Skip to content

Commit

Permalink
do not include .cs in bin/sc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Feb 26, 2024
1 parent da070ac commit 6cfcbd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Neo.Compiler.CSharp/CompilationEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ public Compilation GetCompilation(string csproj)
{
string folder = Path.GetDirectoryName(csproj)!;
string obj = Path.Combine(folder, "obj");
string binSc = Path.Combine(Path.Combine(folder, "bin"), "sc");
HashSet<string> sourceFiles = Directory.EnumerateFiles(folder, "*.cs", SearchOption.AllDirectories)
.Where(p => !p.StartsWith(obj))
.Where(p => !p.StartsWith(obj) && ! p.StartsWith(binSc))
.GroupBy(Path.GetFileName)
.Select(g => g.First())
.ToHashSet(StringComparer.OrdinalIgnoreCase);
Expand Down

0 comments on commit 6cfcbd9

Please sign in to comment.