在 Roslyn 单元测试项目中,$(xunitVersion) 变量集在哪里?

In the Roslyn unit test projects where is $(xunitVersion) variable set?

我注意到在 Roslyn 源的单元测试项目的 .csproj 文件中,有对 xUnit 组件的引用,其版本设置为 $(xunitVersion) 等属性。这些属性的值在哪里设置?它们似乎并没有在项目文件中设置,我也查看了 Roslyn.sln。我在使用 dev studio 2017 的 Roslyn 主分支上。

这些属性正在 build\Targets\Packages.props 中定义。然后通过导入指令将该文件导入到其他文件。

例如:src\ExpressionEvaluator\Core\Test\ExpressionCompiler\ExpressionCompilerTestUtilities.csproj 引用 $(xunitVersion) 导入 build\Targets\SettingsSdk.props 进而导入 Settings.props 导入 Versions.props 导入 Packages.props