You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Initializes a new instance of the <see cref="NoVersionException"/> class with a specified error message and a reference to the inner exception that is the cause of this exception
/// strip the given url, to only contain the github version (not normalized)
308
+
/// </summary>
309
+
/// <param name="url"></param>
310
+
/// <returns>striped repo version string</returns>
311
+
privatestringExtractVersionFromUrl(stringurl)
312
+
{
313
+
// extract the tag from the url and validate/normalize input
314
+
//no releases yet
315
+
if(!url.Contains("/tag/"))
316
+
thrownewNoVersionException(url+" the github version number does not contain \"tag\" in its path. Usually occurs when no release exists. [Remote error]");
/// <exception cref="InvalidVersionException">Is thrown if the supplied version or the remote version does not match the allowed version pattern</exception>
354
+
/// <exception cref="NoVersionException">Is thrown if the remote repo does not have any releases</exception>
/// <exception cref="InvalidVersionException">Is thrown if the supplied version or the remote version does not match the allowed version pattern</exception>
366
+
/// <exception cref="NoVersionException">Is thrown if the remote repo does not have any releases</exception>
0 commit comments