File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
UnitsNet.NumberExtensions
UnitsNet.Serialization.JsonNet Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 17
17
<PackageTags >UnitsNet Extensions NumberToExtensions NumberToUnitsExtensions NumberExtensions NumberToUnits convert conversion parse</PackageTags >
18
18
</PropertyGroup >
19
19
20
+ <!-- Assembly and msbuild properties -->
20
21
<PropertyGroup >
21
- <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
22
- <FileVersion >$(Version)</FileVersion > <!-- Will match NuGet version -->
22
+ <!-- Removes any semantic version suffix after the version number and appends ".0", for example "6.0.0-pre014 => "6.0.0.0" -->
23
+ <VersionNoSuffix >$([System.Text.RegularExpressions.Regex]::Match($(Version), '^[0-9.]+')).0</VersionNoSuffix >
24
+ <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
25
+ <FileVersion >$(VersionNoSuffix)</FileVersion > <!-- Match the NuGet version number, except any suffix in the semantic version. -->
23
26
<LangVersion >latest</LangVersion >
24
27
<Nullable >enable</Nullable >
25
28
<RootNamespace >UnitsNet</RootNamespace >
Original file line number Diff line number Diff line change 20
20
21
21
<!-- Assembly and msbuild properties -->
22
22
<PropertyGroup >
23
- <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
24
- <FileVersion >$(Version)</FileVersion > <!-- Will match NuGet version -->
23
+ <!-- Removes any semantic version suffix after the version number and appends ".0", for example "6.0.0-pre014 => "6.0.0.0" -->
24
+ <VersionNoSuffix >$([System.Text.RegularExpressions.Regex]::Match($(Version), '^[0-9.]+')).0</VersionNoSuffix >
25
+ <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
26
+ <FileVersion >$(VersionNoSuffix)</FileVersion > <!-- Match the NuGet version number, except any suffix in the semantic version. -->
25
27
<LangVersion >latest</LangVersion >
26
28
<Nullable >enable</Nullable >
27
29
<RootNamespace >UnitsNet.Serialization.JsonNet</RootNamespace >
Original file line number Diff line number Diff line change 20
20
21
21
<!-- Assembly and msbuild properties -->
22
22
<PropertyGroup >
23
- <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
24
- <FileVersion >$(Version)</FileVersion > <!-- Will match NuGet version -->
23
+ <!-- Removes any semantic version suffix after the version number and appends ".0", for example "6.0.0-pre014 => "6.0.0.0" -->
24
+ <VersionNoSuffix >$([System.Text.RegularExpressions.Regex]::Match($(Version), '^[0-9.]+')).0</VersionNoSuffix >
25
+ <AssemblyVersion >6.0.0.0</AssemblyVersion > <!-- Fixed to major version, for strong naming -->
26
+ <FileVersion >$(VersionNoSuffix)</FileVersion > <!-- Match the NuGet version number, except any suffix in the semantic version. -->
25
27
<LangVersion >latest</LangVersion >
26
28
<Nullable >enable</Nullable >
27
29
<RootNamespace >UnitsNet</RootNamespace >
You can’t perform that action at this time.
0 commit comments