Skip to content

Commit 5572a03

Browse files
committed
C#: Integration test for 'dotnet publish'.
1 parent 38b23f1 commit 5572a03

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// See https://aka.ms/new-console-template for more information
2+
Console.WriteLine("Hello, World!");
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
from create_database_utils import *
3+
4+
run_codeql_database_create(['dotnet publish'], test_db="default-db", db=None, lang="csharp")
5+
6+
## Check that the publish folder is created.
7+
if not os.path.isdir("bin/Debug/net6.0/publish/"):
8+
raise Exception("The publish artifact folder was not created.")

0 commit comments

Comments
 (0)