[xharness] Add launch.json/tasks.json for xharness. (#20428)

This commit is contained in:
Rolf Bjarne Kvinge 2024-04-16 17:36:15 +02:00 коммит произвёл GitHub
Родитель ce139cb480
Коммит 53d21b14db
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 38 добавлений и 2 удалений

Просмотреть файл

@ -12,7 +12,7 @@ endif
MTOUCH=$(IOS_DESTDIR)/$(MONOTOUCH_PREFIX)/bin/mtouch
XHARNESS_EXECUTABLE=xharness/bin/Debug/$(DOTNET_TFM)/xharness.dll
XHARNESS_EXECUTABLE=xharness/bin/Debug/xharness.dll
export MD_MTOUCH_SDK_ROOT=$(IOS_DESTDIR)/$(MONOTOUCH_PREFIX)
export MSBUILD_EXE_PATH=$(MONO_PREFIX)/lib/mono/msbuild/15.0/bin/MSBuild.dll

Просмотреть файл

@ -4509,7 +4509,7 @@ public class Dummy {
environment_variables ["SKIP_SIMULATOR_SETUP"] = "1";
environment_variables ["USE_TCP_TUNNEL"] = null;
var executable = Path.Combine (Configuration.RootPath, "tests", "xharness", "bin", "Debug", Configuration.DotNetTfm, "xharness");
var executable = Path.Combine (Configuration.RootPath, "tests", "xharness", "bin", "Debug", "xharness");
var args = new List<string> ();
args.Add ("--run");
args.Add (csprojpath);

23
tests/xharness/.vscode/launch.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C#: xharness Debug Site",
"preLaunchTask": "dotnet: build",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/bin/Debug/xharness.dll",
"args": [
"--verbose",
"--jenkins:server",
"--autoconf",
"--rootdir",
"..",
],
"cwd": "${workspaceFolder}",
}
]
}

12
tests/xharness/.vscode/tasks.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "dotnet",
"task": "build",
"group": "build",
"problemMatcher": [],
"label": "dotnet: build"
}
]
}

Просмотреть файл

@ -9,6 +9,7 @@
<EnableDefaultItems>false</EnableDefaultItems>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<!--<Nullable>enable</Nullable>-->
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">