diff options
| author | ruki <[email protected]> | 2026-03-17 22:45:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-17 22:45:32 +0800 |
| commit | f48ca26675a3b9eac14374f98cc175a087e2e3e1 (patch) | |
| tree | 32c2745c92b3ed18acf902a9d51639bb241accab /tests | |
| parent | 40ced1a19868a7ab57f6d1322c76b02e23a4aa97 (diff) | |
improve tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/csharp/console_with_runtime_json/src/Program.cs | 2 | ||||
| -rw-r--r-- | tests/projects/csharp/console_with_runtime_json/xmake.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/projects/csharp/console_with_runtime_json/src/Program.cs b/tests/projects/csharp/console_with_runtime_json/src/Program.cs index 690faf873..fd836a339 100644 --- a/tests/projects/csharp/console_with_runtime_json/src/Program.cs +++ b/tests/projects/csharp/console_with_runtime_json/src/Program.cs @@ -1,6 +1,6 @@ using System.Text.Json; -var runtimeFile = Path.Combine(AppContext.BaseDirectory, "runtime.json"); +var runtimeFile = Path.Combine(Directory.GetCurrentDirectory(), "runtime.json"); if (!File.Exists(runtimeFile)) { Console.WriteLine("runtime.json missing"); return; diff --git a/tests/projects/csharp/console_with_runtime_json/xmake.lua b/tests/projects/csharp/console_with_runtime_json/xmake.lua index 474eda548..979f74307 100644 --- a/tests/projects/csharp/console_with_runtime_json/xmake.lua +++ b/tests/projects/csharp/console_with_runtime_json/xmake.lua @@ -4,3 +4,4 @@ target("app") set_kind("binary") add_rules("csharp") add_files("src/Program.cs") + set_rundir("src") |
