private string SetVersion(string version, string lib) { var path = $@".\Src\{lib}\{lib}.csproj"; if (!File.Exists(path)) { _output.Color(ConsoleColor.Red).WriteLine($"{path} does not exist"); return(""); } _versions.SetVersion(path, version); return(version); }
private string BumpVersion(bool major, bool minor, string lib) { var path = $@".\Src\{lib}\{lib}.csproj"; if (!File.Exists(path)) { _output.Color(ConsoleColor.Red).WriteLine($"{path} does not exist"); return(""); } var version = _versions.GetVersion(path); version = _versions.GetNextVersion(version, major, minor); _versions.SetVersion(path, version); return(version); }