Merge pull request #12068 from michaelnebel/csharp/dotnetpublishtest

C#: Avoid that the dotnet publish test refers to a specific .NET vers…
This commit is contained in:
Michael Nebel
2023-02-02 15:34:06 +01:00
committed by GitHub

View File

@@ -1,8 +1,9 @@
import os
from create_database_utils import *
run_codeql_database_create(['dotnet publish'], test_db="default-db", db=None, lang="csharp")
artifacts = 'bin/Temp'
run_codeql_database_create([f"dotnet publish -o {artifacts}"], test_db="default-db", db=None, lang="csharp")
## Check that the publish folder is created.
if not os.path.isdir("bin/Debug/net7.0/publish/"):
if not os.path.isdir(artifacts):
raise Exception("The publish artifact folder was not created.")