Skip to content

Commit 17ba4ab

Browse files
committed
C#: Add buildless integration test with .net 8.0
1 parent f90d53a commit 17ba4ab

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import csharp
2+
3+
from Assembly a
4+
where not a.getCompilation().getOutputAssembly() = a
5+
select a
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Program
2+
{
3+
static void Main(string[] args)
4+
{
5+
}
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.407"
4+
}
5+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFrameworks>net8.0</TargetFrameworks>
6+
</PropertyGroup>
7+
8+
<Target Name="DeleteBinObjFolders" BeforeTargets="Clean">
9+
<RemoveDir Directories=".\bin" />
10+
<RemoveDir Directories=".\obj" />
11+
</Target>
12+
13+
<ItemGroup>
14+
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
15+
<!-- The below causes DB-CHECK errors: -->
16+
<!-- <PackageReference Include="NUnit" Version="3.10.1" /> -->
17+
<PackageReference Include="Avalara.AvaTax" Version="23.11.0" />
18+
</ItemGroup>
19+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import runs_on
2+
3+
4+
@runs_on.posix
5+
def test(codeql, csharp):
6+
codeql.database.create(build_mode="none")

0 commit comments

Comments
 (0)