/// <summary>
 /// Writes the version.txt file to a directory within a repo with the specified version information.
 /// </summary>
 /// <param name="projectDirectory">
 /// The path to the directory in which to write the version.txt file.
 /// The file's impact will be all descendent projects and directories from this specified directory,
 /// except where any of those directories have their own version.txt file.
 /// </param>
 /// <param name="version">The version information to write to the file.</param>
 /// <param name="unstableTag">The optional unstable tag to include in the file.</param>
 /// <returns>The path to the file written.</returns>
 public static string SetVersion(string projectDirectory, Version version, string unstableTag = null)
 {
     return(SetVersion(projectDirectory, VersionOptions.FromVersion(version, unstableTag)));
 }
Example #2
0
 /// <summary>
 /// Writes the version.txt file to a directory within a repo with the specified version information.
 /// </summary>
 /// <param name="projectDirectory">
 /// The path to the directory in which to write the version.txt file.
 /// The file's impact will be all descendent projects and directories from this specified directory,
 /// except where any of those directories have their own version.txt file.
 /// </param>
 /// <param name="version">The version information to write to the file.</param>
 /// <param name="unstableTag">The optional unstable tag to include in the file.</param>
 /// <returns>The path to the file written.</returns>
 public static string SetVersion(string projectDirectory, Version version, string unstableTag = null)
 {
     return(SetVersion(projectDirectory, VersionOptions.FromVersion(version, unstableTag), includeSchemaProperty: false));
 }