MCPcopy Create free account
hub / github.com/apache/fory / _update_csharp_props_version

Function _update_csharp_props_version

ci/release.py:899–909  ·  view source on GitHub ↗
(lines, v: str)

Source from the content-addressed store, hash-verified

897
898
899def _update_csharp_props_version(lines, v: str):
900 for index, line in enumerate(lines):
901 if "<Version>" not in line:
902 continue
903 lines[index] = re.sub(
904 r"(<Version>)[^<]+(</Version>)",
905 r"\g<1>" + v + r"\2",
906 line,
907 )
908 return lines
909 raise ValueError("No <Version> element found in csharp/Directory.Build.props")
910
911
912def _update_csharp_readme_package_version(lines, v: str):

Callers

nothing calls this directly

Calls 1

subMethod · 0.45

Tested by

no test coverage detected