Skip to content

Commit cb5be0e

Browse files
a-ctorMichaelKetting
authored andcommitted
Merge pull request #1180 from re-motion/bugfix/RM-9273-Incorrect-version-update-hook
RM-9273 Fix release process script version update hook
2 parents 3a41f9b + 81ab9fe commit cb5be0e

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

Build/Customizations/ReleaseProcessScript.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<prepareNextVersionMsBuildSteps>
2121
<step>
2222
<msBuildCallArguments>
23-
<argument>Build\Remotion.Local.build</argument>
24-
<argument>/t:UpdateAssemblyInfosForRelease</argument>
23+
<argument>Build\Customizations\UpdateVersion.build</argument>
24+
<argument>/t:UpdateVersion</argument>
2525
<argument>/property:Version={version}</argument>
2626
</msBuildCallArguments>
2727
<commitMessage>Update metadata to version '{version}'.</commitMessage>
@@ -30,8 +30,8 @@
3030
<developmentForNextReleaseMsBuildSteps>
3131
<step>
3232
<msBuildCallArguments>
33-
<argument>Build\Remotion.Local.build</argument>
34-
<argument>/t:UpdateAssemblyInfosForDevelopment</argument>
33+
<argument>Build\Customizations\UpdateVersion.build</argument>
34+
<argument>/t:UpdateVersion</argument>
3535
<argument>/property:Version={version}</argument>
3636
</msBuildCallArguments>
3737
<commitMessage>Update metadata to version '{version}'.</commitMessage>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
4+
<Target Name="UpdateVersion">
5+
<XmlPoke
6+
XmlInputPath="$(MSBuildThisFileDirectory)Version.props"
7+
Namespaces="&lt;Namespace Prefix='x'
8+
Uri='http://schemas.microsoft.com/developer/msbuild/2003'/&gt;"
9+
Query="//x:PropertyGroup/x:Version"
10+
Value="$(Version)"
11+
/>
12+
</Target>
13+
14+
</Project>

0 commit comments

Comments
 (0)