From 5fc69b32dc6d31d9e729468e2986cde572a2226c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Mon, 16 Oct 2023 13:59:06 +0200 Subject: [PATCH] Allow both .sln and .csproj in a .NET submit --- evaluator/images/dotnet/entry.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/evaluator/images/dotnet/entry.py b/evaluator/images/dotnet/entry.py index ccb0b793..b55508b7 100755 --- a/evaluator/images/dotnet/entry.py +++ b/evaluator/images/dotnet/entry.py @@ -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: