Skip to content

Commit e740653

Browse files
authored
Merge pull request #4928 from vritant24/patch-1
Add link to recommended MSBuild Properties
2 parents 8040e47 + e227418 commit e740653

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/test/configure-unit-tests-by-using-a-dot-runsettings-file.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ The file appears on the Test menu, and you can select or deselect it. While sele
4444

4545
There are three ways of specifying a run settings file in Visual Studio 2019 version 16.4 and later:
4646

47-
- Add a build property to a project through either the project file or a Directory.Build.props file. The run settings file for a project is specified by the property **RunSettingsFilePath**.
47+
- Add a build property to a project through either the project file or a Directory.Build.props file. The run settings file for a project is specified by the property **RunSettingsFilePath**.
4848

4949
- Project-level run settings is currently supported in C#, VB, C++, and F# projects.
5050
- A file specified for a project overrides any other run settings file specified in the solution.
51+
- [These MSBuild properties](https://docs.microsoft.com/visualstudio/msbuild/msbuild-reserved-and-well-known-properties?view=vs-2019) can be used to specify the path to the runsettings file.
5152

5253
Example of specifying a *.runsettings* file for a project:
5354

5455
```xml
5556
<Project Sdk="Microsoft.NET.Sdk">
5657
<PropertyGroup>
57-
<RunSettingsFilePath>$(SolutionDir)\example.runsettings</RunSettingsFilePath>
58+
<RunSettingsFilePath>$(MSBuildProjectDirectory)\example.runsettings</RunSettingsFilePath>
5859
</PropertyGroup>
5960
...
6061
</Project>

0 commit comments

Comments
 (0)