diff --git a/README.md b/README.md index b1645ca5..bcbeaed7 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ To open an issue for this project, please visit the [core xUnit.net project issu ## Debugging -Debugging the VS Adapter is tricky. There are two ways to do it depending on whether you want to do it under `net472` or `netcoreapp3.1`. In all cases, you'll currently need to build your own test adapter NuGet package using `build.ps1`, `build.ps1 Packages` first to ensure you have local symbols. The symbols are not in the public package. It's helpful to add it to a local `\packages` directory and then use an entry like `` in your `NuGet.config` file to point to it. Don't forget to eventually delete it from your global profile `.nuget\packages\xunit...` when you're done. +Debugging the VS Adapter is tricky. There are two ways to do it depending on whether you want to do it under `net462` or `netcoreapp3.1`. In all cases, you'll currently need to build your own test adapter NuGet package using `build.ps1`, `build.ps1 Packages` first to ensure you have local symbols. The symbols are not in the public package. It's helpful to add it to a local `\packages` directory and then use an entry like `` in your `NuGet.config` file to point to it. Don't forget to eventually delete it from your global profile `.nuget\packages\xunit...` when you're done. -### `net472` +### `net462` Easiest thing to do is add a `launchSettings.json` file that adds the `vstest.console.exe` as a startup project and point it to an xunit dll. Something like the following (use `/listtests` if you just want to debug the discovery portion): ```json @@ -16,7 +16,7 @@ Easiest thing to do is add a `launchSettings.json` file that adds the `vstest.co "profiles": { "vstest console": { "executablePath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe", - "commandLineArgs": ".\\bin\\Debug\\net472\\Tests.System.Reactive.dll /TestAdapterPath:.\\bin\\Debug\\net472 /listtests", + "commandLineArgs": ".\\bin\\Debug\\net462\\Tests.System.Reactive.dll /TestAdapterPath:.\\bin\\Debug\\net462 /listtests", "workingDirectory": "C:\\dev\\RxNET\\Rx.NET\\Source\\Tests.System.Reactive\\" } } diff --git a/src/xunit.runner.visualstudio/Constants.cs b/src/xunit.runner.visualstudio/Constants.cs index c99c463b..cce11db1 100644 --- a/src/xunit.runner.visualstudio/Constants.cs +++ b/src/xunit.runner.visualstudio/Constants.cs @@ -2,7 +2,7 @@ { public static class Constants { -#if NET472 +#if NETFRAMEWORK public const string ExecutorUri = "executor://xunit/VsTestRunner2/net"; #elif WINDOWS_UAP public const string ExecutorUri = "executor://xunit/VsTestRunner2/uap"; diff --git a/src/xunit.runner.visualstudio/xunit.runner.visualstudio.csproj b/src/xunit.runner.visualstudio/xunit.runner.visualstudio.csproj index 5e80ca4d..0a51a1fd 100644 --- a/src/xunit.runner.visualstudio/xunit.runner.visualstudio.csproj +++ b/src/xunit.runner.visualstudio/xunit.runner.visualstudio.csproj @@ -6,7 +6,7 @@ xUnit.net Runner for Visual Studio ($(TargetFramework)) true Xunit.Runner.VisualStudio - net472;netcoreapp3.1;uap10.0.16299 + net462;netcoreapp3.1;uap10.0.16299 true Visual Studio 2019 16.8+ Test Explorer runner for the xUnit.net framework. Capable of running xUnit.net v1.9.2 and v2.0+ tests. Supports .NET 4.7.2 or later, .NET Core 3.1 or later, and Universal Windows 10.0.16299 or later. @@ -17,10 +17,10 @@ 10.0.19041.0 xunit.runner.visualstudio - 2.4.2-pre.12 + 2.4.2-pre.22 - + xunit.runner.visualstudio.testadapter $(DefineConstants);NETFRAMEWORK @@ -42,18 +42,18 @@ @@ -81,7 +81,7 @@ Pack="true" /> - + 14.0 diff --git a/test/test.harness/test.harness.csproj b/test/test.harness/test.harness.csproj index 600160c1..c59581a7 100644 --- a/test/test.harness/test.harness.csproj +++ b/test/test.harness/test.harness.csproj @@ -1,12 +1,12 @@  - net472;net6.0 + net462;net6.0 - + diff --git a/test/test.testcasefilter/test.testcasefilter.csproj b/test/test.testcasefilter/test.testcasefilter.csproj index 44b3bd9c..c07b737a 100644 --- a/test/test.testcasefilter/test.testcasefilter.csproj +++ b/test/test.testcasefilter/test.testcasefilter.csproj @@ -1,11 +1,11 @@  - net472;net6.0 + net462;net6.0 - + diff --git a/test/test.xunit.runner.visualstudio/test.xunit.runner.visualstudio.csproj b/test/test.xunit.runner.visualstudio/test.xunit.runner.visualstudio.csproj index 526594fb..029d181a 100644 --- a/test/test.xunit.runner.visualstudio/test.xunit.runner.visualstudio.csproj +++ b/test/test.xunit.runner.visualstudio/test.xunit.runner.visualstudio.csproj @@ -1,17 +1,17 @@  - net472 + net462 - - + + - +