Stable versions (and selected previews) of MSTest, and related packages, are distributed through <https://nuget.org> (see [available packages](../README.md#how-to-consume-mstest)).
To use this channel, you will need to add or edit your [NuGet.Config](https://learn.microsoft.com/nuget/reference/nuget-config-file) file with the following content:
You can also browse interactively the available versions using `https://dev.azure.com/dnceng/public/_artifacts/feed/test-tools/NuGet/<PackageName>/versions`, where `<PackageName>` is the name of the package you are looking for. For example, for MSTest meta package, the link is <https://dev.azure.com/dnceng/public/_artifacts/feed/test-tools/NuGet/MSTest/versions>.
Packages from `test-tools` feed are considered experimental. They might not have the usual quality, may contain experimental and breaking changes, and come without warranty.
NuGet.Config file can be placed next to solution file, or next to project file when you don't have solution file. But in cases where you have solution file, you should always place it next to solution file, to ensure consistent behavior in Visual Studio and in command line.
Adding additional NuGet feeds might lead to warnings or errors from build systems that check compliance. This is because using multiple public and private sources might lead to possible dependency confusion attacks. All the packages we publish to nuget.org are using a reserved prefix. But this might not mitigate the risk in your setup. If this is a concern to you, please discuss with your internal security department.
### Usage with central package management
Solutions that use central package management through `Directory.Packages.props` will see `NU1507` warnings about multiple package sources. To solve this add this section to your `NuGet.Config` file:
```xml
<packageSourceMapping>
<!-- key value for <packageSource> should match key values from <packageSources> element -->
<packageSourcekey="nuget.org">
<packagepattern="*"/>
</packageSource>
<packageSourcekey="test-tools">
<packagepattern="MSTest.*"/>
<packagepattern="Microsoft.Testing.*"/>
</packageSource>
</packageSourceMapping>
```
Full documentation of package source mapping can be [found here](https://learn.microsoft.com/nuget/consume-packages/package-source-mapping#enable-by-manually-editing-nugetconfig).