Skip to content

Commit

Permalink
C#: Add .NET 3 integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Jan 23, 2025
1 parent 9286596 commit c087a72
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
| Program.cs:0:0:0:0 | Program.cs |
| test-db/working/implicitUsings/GlobalUsings.g.cs:0:0:0:0 | test-db/working/implicitUsings/GlobalUsings.g.cs |
5 changes: 5 additions & 0 deletions csharp/ql/integration-tests/linux/standalone_dotnet3/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
12 changes: 12 additions & 0 deletions csharp/ql/integration-tests/linux/standalone_dotnet3/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace standalone_dotnet3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "3.1.9"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

</Project>
4 changes: 4 additions & 0 deletions csharp/ql/integration-tests/linux/standalone_dotnet3/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os

def test(codeql, csharp):
codeql.database.create(build_mode="none")

0 comments on commit c087a72

Please sign in to comment.