Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit e72bb35

Browse files
committed
Centralize dependency versions
1 parent 7cfa7ee commit e72bb35

File tree

8 files changed

+31
-19
lines changed

8 files changed

+31
-19
lines changed

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
<BaseOutputPath Condition="'$(BaseOutputPath)' == ''">$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\</BaseOutputPath>
66
<Authors Condition="'$(Authors)' == ''">Microsoft Corporation</Authors>
77
</PropertyGroup>
8+
9+
<Import Project="dependencies.props" />
810
</Project>

dependencies.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MSBuildPackageVersion>15.7.179</MSBuildPackageVersion>
5+
<MicrosoftCodeAnalysisPackageVersion>2.8.2</MicrosoftCodeAnalysisPackageVersion>
6+
<MicrosoftCodeAnalysisAnalyzersPackageVersion>2.6.1</MicrosoftCodeAnalysisAnalyzersPackageVersion>
7+
<XunitPackageVersion>2.4.0</XunitPackageVersion>
8+
<MicrosoftVisualStudioTestPlatformPackageVersion>14.0.0.1</MicrosoftVisualStudioTestPlatformPackageVersion>
9+
</PropertyGroup>
10+
</Project>

src/Microsoft.DotNet.CodeFormatting.Tests/Microsoft.DotNet.CodeFormatting.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ItemGroup>
1212
<ProjectReference Include="..\CodeFormatter\CodeFormatter.csproj" />
1313
<ProjectReference Include="..\Microsoft.DotNet.CodeFormatting\Microsoft.DotNet.CodeFormatting.csproj" />
14-
<PackageReference Include="xunit" Version="2.4.0" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
14+
<PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
15+
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitPackageVersion)" />
1616
</ItemGroup>
1717
</Project>

src/Microsoft.DotNet.CodeFormatting/Microsoft.DotNet.CodeFormatting.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<TargetFramework>net46</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageReference Include="Microsoft.Build" Version="15.7.179" />
7-
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" />
8-
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
9-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="2.6.1" />
6+
<PackageReference Include="Microsoft.Build" Version="$(MSBuildPackageVersion)" />
7+
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MSBuildPackageVersion)" />
8+
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(MicrosoftCodeAnalysisPackageVersion)" />
9+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersPackageVersion)" />
1010
</ItemGroup>
1111
</Project>

src/Microsoft.DotNet.DeadRegionAnalysis.Tests/Microsoft.DotNet.DeadRegionAnalysis.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<ProjectReference Include="..\Microsoft.DotNet.DeadRegionAnalysis\Microsoft.DotNet.DeadRegionAnalysis.csproj" />
7-
<PackageReference Include="xunit" Version="2.4.0" />
8-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
7+
<PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
8+
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitPackageVersion)" />
99
</ItemGroup>
1010
</Project>

src/Microsoft.DotNet.DeadRegionAnalysis/Microsoft.DotNet.DeadRegionAnalysis.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<TargetFramework>net46</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageReference Include="Microsoft.Build" Version="15.7.179" />
7-
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" />
8-
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
9-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="2.6.1" />
6+
<PackageReference Include="Microsoft.Build" Version="$(MSBuildPackageVersion)" />
7+
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MSBuildPackageVersion)" />
8+
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(MicrosoftCodeAnalysisPackageVersion)" />
9+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersPackageVersion)" />
1010
</ItemGroup>
1111
</Project>

src/XUnitConverter.Tests/XUnitConverter.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<ProjectReference Include="..\XUnitConverter\XUnitConverter.csproj" />
7-
<PackageReference Include="xunit" Version="2.4.0" />
8-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
9-
<PackageReference Include="Microsoft.VisualStudio.TestPlatform" Version="14.0.0.1" />
7+
<PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
8+
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitPackageVersion)" />
9+
<PackageReference Include="Microsoft.VisualStudio.TestPlatform" Version="$(MicrosoftVisualStudioTestPlatformPackageVersion)" />
1010
</ItemGroup>
1111
<ItemGroup>
1212
<Content Include="..\XUnitConverter\MSTestNamespaces.txt">

src/XUnitConverter/XUnitConverter.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<Content Include="MSTestNamespaces.txt" />
88
</ItemGroup>
99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Build" Version="15.7.179" />
11-
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" />
12-
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.8.2" />
13-
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="2.6.1" />
10+
<PackageReference Include="Microsoft.Build" Version="$(MSBuildPackageVersion)" />
11+
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MSBuildPackageVersion)" />
12+
<PackageReference Include="Microsoft.CodeAnalysis" Version="$(MicrosoftCodeAnalysisPackageVersion)" />
13+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(MicrosoftCodeAnalysisAnalyzersPackageVersion)" />
1414
</ItemGroup>
1515
</Project>

0 commit comments

Comments
 (0)