Fix update version to use the appropriate rc style for C#

pull/6121/head
Hao Nguyen 6 years ago
parent 65fed3f294
commit fdfe761022
  1. 4
      update_version.py

@ -155,13 +155,13 @@ def UpdateCsharp():
RewriteXml('csharp/src/Google.Protobuf/Google.Protobuf.csproj', RewriteXml('csharp/src/Google.Protobuf/Google.Protobuf.csproj',
lambda document : ReplaceText( lambda document : ReplaceText(
Find(Find(document.documentElement, 'PropertyGroup'), 'VersionPrefix'), Find(Find(document.documentElement, 'PropertyGroup'), 'VersionPrefix'),
GetFullVersion(rc_suffix = '-rc.')), GetFullVersion(rc_suffix = '-rc')),
add_xml_prefix=False) add_xml_prefix=False)
RewriteXml('csharp/Google.Protobuf.Tools.nuspec', RewriteXml('csharp/Google.Protobuf.Tools.nuspec',
lambda document : ReplaceText( lambda document : ReplaceText(
Find(Find(document.documentElement, 'metadata'), 'version'), Find(Find(document.documentElement, 'metadata'), 'version'),
GetFullVersion(rc_suffix = '-rc.'))) GetFullVersion(rc_suffix = '-rc')))
def UpdateJava(): def UpdateJava():

Loading…
Cancel
Save