Skip to content

Commit

Permalink
Merge pull request #14421 from tamasvajk/csharp/autobuilder-test
Browse files Browse the repository at this point in the history
C#: Add autobuilder test with global.json
  • Loading branch information
tamasvajk authored Oct 11, 2023
2 parents 68d00a8 + 538df1b commit aa7a667
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| Program.cs:0:0:0:0 | Program.cs |
| obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs:0:0:0:0 | obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs |
| obj/Debug/net5.0/autobuild.AssemblyInfo.cs:0:0:0:0 | obj/Debug/net5.0/autobuild.AssemblyInfo.cs |
5 changes: 5 additions & 0 deletions csharp/ql/integration-tests/all-platforms/autobuild/Files.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import csharp

from File f
where f.fromSource()
select f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var dummy = "dummy";
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<Target Name="DeleteBinObjFolders" BeforeTargets="Clean">
<RemoveDir Directories=".\bin" />
<RemoveDir Directories=".\obj" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "5.0.408"
}
}
3 changes: 3 additions & 0 deletions csharp/ql/integration-tests/all-platforms/autobuild/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from create_database_utils import *

run_codeql_database_create([], lang="csharp", extra_args=["--extractor-option=cil=false"])

0 comments on commit aa7a667

Please sign in to comment.