Skip to content

Commit 3f08d21

Browse files
committed
Comments from Copilot ... I'd love it if it could give the same comments across commits.
1 parent cc41334 commit 3f08d21

2 files changed

Lines changed: 17 additions & 12 deletions

File tree

build2.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291

292292
<!-- Versioning arguments -->
293293
$(BuildNumberArgument)
294-
$(PacakgeVersionArgument)
294+
$(PacakgeVersionMdsArgument)
295295

296296
<!-- Reference Type Arguments -->
297297
$(ReferenceTypeArgument)
@@ -316,7 +316,7 @@
316316

317317
<!-- Versioning arguments -->
318318
$(BuildNumberArgument)
319-
$(PacakgeVersionArgument)
319+
$(PacakgeVersionMdsArgument)
320320

321321
<!-- Reference type arguments -->
322322
$(ReferenceTypeArgument)

src/Microsoft.Data.SqlClient/MdsVersions.props

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@
33
<PropertyGroup>
44
<MdsVersionDefault>7.0.0</MdsVersionDefault>
55

6-
<!--
7-
This is the version that is used as the version for the NuGet package. If it is not
8-
overridden, the above default version will be used with the build number and a string suffix
9-
appended (to indicate the version is pre-production).
10-
11-
NOTE/@TODO: Since the PackMds target in build2.proj directly calls nuget.exe, it will not
12-
pick up this property.
13-
-->
14-
<MdsPackageVersion Condition="'$(MdsPackageVersion)' == ''">$(MdsVersionDefault).$(BuildNumber)-dev</MdsPackageVersion>
6+
<BuildNumber Condition="'$(BuildNumber)' == ''">0</BuildNumber>
157

168
<!--
179
This is the version that is used as the AssemblyVersion and FileVersion fields in the
@@ -20,11 +12,24 @@
2012
As a convenience feature, if a package version but not an assembly version is supplied, the
2113
package version will have any suffix trimmed to generate valid assembly version.
2214
23-
NOTE: It is possible that the build number can be in the format xxxx.y which *may* overflow
15+
NOTE: It is possible that the build number can be in the format xxxxx.yy which *may* overflow
2416
the 16-bit integer for the revision part of the assembly version. For that reason, we simply
2517
discard everything after the first part of the build number for the assembly version.
2618
-->
2719
<MdsAssemblyVersion Condition="'$(MdsAssemblyVersion)' == '' AND '$(MdsPackageVersion)' == ''">$(MdsVersionDefault).$(BuildNumber.Split('.')[0])</MdsAssemblyVersion>
2820
<MdsAssemblyVersion Condition="'$(MdsAssemblyVersion)' == '' AND '$(MdsPackageVersion)' != ''">$(MdsPackageVersion.Split('-')[0])</MdsAssemblyVersion>
21+
22+
<!--
23+
This is the version that is used as the version for the NuGet package. If it is not
24+
overridden, the above default version will be used with the build number and a string suffix
25+
appended (to indicate the version is pre-production).
26+
27+
NOTE: NuGet versioning can handle arbitrary version strings, so we do not need to trim the
28+
build number like we do for the assembly version.
29+
30+
NOTE/@TODO: Since the PackMds target in build2.proj directly calls nuget.exe, it will not
31+
pick up this property.
32+
-->
33+
<MdsPackageVersion Condition="'$(MdsPackageVersion)' == ''">$(MdsVersionDefault).$(BuildNumber)-dev</MdsPackageVersion>
2934
</PropertyGroup>
3035
</Project>

0 commit comments

Comments
 (0)