File tree Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ TestResult.xml
18
18
.idea /
19
19
.vs /
20
20
/build-common /NHibernate.dev.props
21
+ /doc /reference /master.xml
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ Tools\gitreleasemanager\0.7.0\tools\GitReleaseManager.exe create -o nhibernate -
27
27
28
28
* Check/update version number in NHibernate.props under build-common folder.
29
29
Clear VersionSuffix if present.
30
- NOTE: This paragraph is changed for 5.3 - if you are releasing earlier version please check instruction from appropriate branch
31
30
32
31
* Don't forget to commit the above.
33
32
@@ -55,3 +54,10 @@ Tools\gitreleasemanager\0.7.0\tools\GitReleaseManager.exe create -o nhibernate -
55
54
* If this was a stable branch, merge it forward to master. Perhaps some
56
55
changes need to be edited out in the merge, but this will reduce the
57
56
risk of some issue being left unfixed on master.
57
+
58
+ * If this was the master branch, create the stable branch for the new release, named
59
+ according to its version with "x" instead of its patch number. By example, "5.3.x".
60
+
61
+ * If next version is decided set it in NHibernate.props under build-common folder
62
+ (in most cases - increment minor version) and set VersionSuffix to "dev".
63
+ Commit it directly (without going through a PR).
Original file line number Diff line number Diff line change 2
2
<Import Condition =" Exists('NHibernate.dev.props')" Project =" NHibernate.dev.props" />
3
3
4
4
<PropertyGroup >
5
- <VersionPrefix Condition =" '$(VersionPrefix)' == ''" >5.3.0</VersionPrefix >
5
+ <NhVersion Condition =" '$(NhVersion)' == ''" >5.3</NhVersion >
6
+ <VersionPatch Condition =" '$(VersionPatch)' == ''" >0</VersionPatch >
6
7
<!-- Clear VersionSuffix for making release and set it to dev for making development builds -->
7
- <VersionSuffix Condition =" '$(VersionSuffix)' == ''" >dev</VersionSuffix >
8
+ <VersionSuffix Condition =" '$(VersionSuffix)' == ''" >dev</VersionSuffix >
8
9
10
+ <VersionPrefix Condition =" '$(VersionPrefix)' == ''" >$(NhVersion).$(VersionPatch)</VersionPrefix >
9
11
<VersionSuffix Condition =" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != ''" >$(VersionSuffix).$(BuildNumber)</VersionSuffix >
12
+ <AssemblyVersion >$(NhVersion).0.0</AssemblyVersion >
13
+ <FileVersion >$(VersionPrefix).0</FileVersion >
10
14
11
- <!-- Make assembly version always as major.minor.0.0 -->
12
- <AssemblyVersion >$([System.Text.RegularExpressions.Regex]::Replace($(VersionPrefix), '^(\d+\.\d+).+', '$1.0.0'))</AssemblyVersion >
13
-
14
15
<NhAppTargetFrameworks Condition =" $(NhAppTargetFrameworks) == ''" >net461;netcoreapp2.0</NhAppTargetFrameworks >
15
16
<NhLibTargetFrameworks Condition =" $(NhLibTargetFrameworks) == ''" >net461;netcoreapp2.0;netstandard2.0</NhLibTargetFrameworks >
16
17
<NhNetFx >false</NhNetFx >
Original file line number Diff line number Diff line change 15
15
<target name =" get-project-version" >
16
16
<xmlpeek
17
17
file =" ${root.dir}/build-common/NHibernate.props"
18
- xpath =" /Project/PropertyGroup/VersionPrefix"
19
- property =" version.prefix" />
20
- <property name =" project.version" value =" ${version.prefix}" />
18
+ xpath =" /Project/PropertyGroup/NhVersion"
19
+ property =" version.short" />
20
+ <xmlpeek
21
+ file =" ${root.dir}/build-common/NHibernate.props"
22
+ xpath =" /Project/PropertyGroup/VersionPatch"
23
+ property =" version.patch" />
24
+ <property name =" project.version" value =" ${version.short}.${version.patch}" />
21
25
</target >
22
26
23
27
<target name =" set-doc-version" >
28
+ <copy file =" ${root.dir}/doc/reference/master.template.xml" tofile =" ${root.dir}/doc/reference/master.xml" overwrite =" true" />
24
29
<xmlpoke
25
30
file =" ${root.dir}/doc/reference/master.xml"
26
31
xpath =" /book/bookinfo/releaseinfo"
27
- value =" ${project. version}" />
32
+ value =" ${version.short }" />
28
33
</target >
29
34
30
35
<!-- properties used to connect to database for testing -->
File renamed without changes.
You can’t perform that action at this time.
0 commit comments