Microsoft.VisualStudio.Sdk.TestFramework.Xunit 17.11.8

Prefix Reserved
dotnet add package Microsoft.VisualStudio.Sdk.TestFramework.Xunit --version 17.11.8                
NuGet\Install-Package Microsoft.VisualStudio.Sdk.TestFramework.Xunit -Version 17.11.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.VisualStudio.Sdk.TestFramework.Xunit" Version="17.11.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.VisualStudio.Sdk.TestFramework.Xunit --version 17.11.8                
#r "nuget: Microsoft.VisualStudio.Sdk.TestFramework.Xunit, 17.11.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.VisualStudio.Sdk.TestFramework.Xunit as a Cake Addin
#addin nuget:?package=Microsoft.VisualStudio.Sdk.TestFramework.Xunit&version=17.11.8

// Install Microsoft.VisualStudio.Sdk.TestFramework.Xunit as a Cake Tool
#tool nuget:?package=Microsoft.VisualStudio.Sdk.TestFramework.Xunit&version=17.11.8                

Microsoft.VisualStudio.Sdk.TestFramework.Xunit

This package contains functionality applicable when using Xunit as your test framework.

For each of your test classes that rely on VS mocked services, apply the Collection attribute and add a parameter and statement to your constructor:

using Microsoft.VisualStudio.Sdk.TestFramework;

[Collection(MockedVS.Collection)]
public class YourTestClass
{
    public TestFrameworkTests(GlobalServiceProvider sp)
    {
        sp.Reset();
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows8.0 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Microsoft.VisualStudio.Sdk.TestFramework.Xunit:

Repository Stars
NuGet/NuGet.Client
Client Tools for NuGet - including Visual Studio extensions, command line tools, and msbuild support. (Open issues on https://github.com/nuget/home/issues)
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source
Version Downloads Last updated
17.11.8 120 10/26/2024
17.6.16 67,775 7/10/2023
17.2.7 19,397 6/21/2022
17.2.5 626 5/25/2022
17.1.3-alpha 257 1/13/2022