C#: Avoid that the dotnet publish test refers to a specific .NET version.

This commit is contained in:
Michael Nebel
2023-02-02 10:51:32 +01:00
parent 7271d9987e
commit 960f776e29

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.")