Has anyone seen this particular Visual Studio code error while using a debugger? I narrowed it down to this error code, and there does not seem to be any online resource on this issue.
I am using Visual Studio Code to do some C # debugging. And it narrows to this problem. I have a simple code snippet in a XUNIT project, for example:
using System;
using Xunit;
namespace xunitexample
{
public class UnitTest
{
[Fact]
public void Test1()
{
Console.WriteLine("Hello World...");
}
}
}
Project file xunitexample.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
</ItemGroup>
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "test",
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/xunitexample.dll",
"args": [],
"cwd": "${workspaceRoot}",
"console": "internalConsole",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
a tasks.json:
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "test",
"args": [
"${workspaceRoot}/xunitexample.csproj"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
}
]
}
It seems to end with a screen exit:
Build started, please wait...
Build completed.
Test run for c:\Users\carlf\Documents\Solidity\geth\xunitexample\bin\Debug\netcoreapp1.1\xunitexample.dll(.NETCoreApp,Version=v1.1)
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
[xUnit.net 00:00:00.5726113] Discovering: xunitexample
[xUnit.net 00:00:00.6819027] Discovered: xunitexample
[xUnit.net 00:00:00.7242235] Starting: xunitexample
Hello World...
[xUnit.net 00:00:00.8617720] Finished: xunitexample
Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 1.5850 Seconds
-
But still, it shows this configuration error message at the top of the status screen, with a big red RED:
Error processing request for "configurationDone". Unknown error: 0x89720010
?
.