Skip to content

Commit 83ef836

Browse files
authored
Only update razor dependencies coming from maintenance-packages when source build is true (#11285)
Tracking issue: dotnet/sdk#45155 Unblocks: dotnet/sdk#45042 @ViktorHofer @ericstj @MichaelSimons @akoeplinger
2 parents 7580777 + 37fe198 commit 83ef836

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<PackageVersion Include="System.Security.Cryptography.Xml" Version="7.0.1" />
116116
<PackageVersion Include="System.Text.Encodings.Web" Version="8.0.0" />
117117
<PackageVersion Include="System.Text.Json" Version="8.0.4" />
118-
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
118+
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
119119
<PackageVersion Include="xunit" Version="$(_XunitPackageVersion)" />
120120
<PackageVersion Include="Xunit.Combinatorial" Version="1.6.24" />
121121
<PackageVersion Include="xunit.extensibility.execution" Version="$(_XunitPackageVersion)" />
@@ -127,7 +127,7 @@
127127
at the appropriate version, in combination with using CentralPackageTransitivePinningEnabled, will
128128
ensure the correct version is used in all places
129129
-->
130-
<PackageVersion Include="Microsoft.IO.Redist" Version="6.0.1" />
130+
<PackageVersion Include="Microsoft.IO.Redist" Version="$(MicrosoftIORedistVersion)" />
131131
<PackageVersion Include="System.Formats.Asn1" Version="8.0.1" />
132132
</ItemGroup>
133133
</Project>

eng/Versions.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,14 @@
100100
<XUnitVersion>2.6.6</XUnitVersion>
101101
<XUnitAnalyzersVersion>1.7.0</XUnitAnalyzersVersion>
102102
</PropertyGroup>
103+
104+
<!-- The maintenance-packages dependency versions need to be conditionally selected: https://github.com/dotnet/sdk/issues/45155 -->
105+
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' != 'true'">
106+
<MicrosoftIORedistVersion>6.0.1</MicrosoftIORedistVersion>
107+
<SystemThreadingTasksExtensionsVersion>4.5.4</SystemThreadingTasksExtensionsVersion>
108+
</PropertyGroup>
109+
<PropertyGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
110+
<MicrosoftIORedistVersion>6.1.0</MicrosoftIORedistVersion>
111+
<SystemThreadingTasksExtensionsVersion>4.6.0</SystemThreadingTasksExtensionsVersion>
112+
</PropertyGroup>
103113
</Project>

0 commit comments

Comments
 (0)