Skip to content

Commit

Permalink
Allow both .sln and .csproj in a .NET submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Oct 16, 2023
1 parent cac2fd2 commit 5fc69b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions evaluator/images/dotnet/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ def build_dotnet_project(run_tests: bool) -> BuildResult:
sln = [p for p in paths if Path(p).suffix == ".sln"]
csproj = [p for p in paths if Path(p).suffix == ".csproj"]

if sln and csproj:
return BuildResult.fail("Both .sln and .csproj file was found in the root directory.")
if not sln and not csproj:
return BuildResult.fail("No .sln or .csproj file was found in the root directory.")
if len(sln) > 1:
Expand Down

0 comments on commit 5fc69b3

Please sign in to comment.