Skip to content

Commit 29c8260

Browse files
authored
Merge pull request github#12196 from github/mbg/csharp/add-msbuild-integration-tests
2 parents 87b54e6 + 9db1366 commit 29c8260

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
3+
namespace Test
4+
{
5+
public class Program
6+
{
7+
public static int Main(string[] args)
8+
{
9+
Console.WriteLine("Hello world!");
10+
return 0;
11+
}
12+
}
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net4.0</TargetFramework>
6+
</PropertyGroup>
7+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from create_database_utils import *
2+
3+
# force CodeQL to use MSBuild by setting `LGTM_INDEX_MSBUILD_TARGET`
4+
run_codeql_database_create([], test_db="default-db", db=None, lang="csharp", extra_env={ 'LGTM_INDEX_MSBUILD_TARGET': 'Build' })

0 commit comments

Comments
 (0)