Beispiel #1
0
        private IDictionary <Version, string> GetResources()
        {
            var dico      = new Dictionary <Version, string>();
            var regex     = new Regex(@"Probel\.Lanceur\.SQLiteDb\.Assets\.Scripts\.update-(?<version>\d{1,2}\.\d{1,2})\.sql");
            var resources = _resManager.ListResources(regex);

            foreach (var r in resources)
            {
                var v = Version.Parse(regex.Match(r)?.Groups["version"]?.Value ?? string.Empty);
                dico.Add(v, r);
            }

            return(dico);
        }