Tuesday, December 6, 2016

[HowTo] Upload Jenkins build results to Google Drive

Friday, November 18, 2016

[HowTo] Configure Bitbucket or GitHub with multiple SSH keys


Monday, November 14, 2016

Find bay numbers for disks in a SAS enclosure


Tuesday, November 8, 2016

Configure Jenkins to work with Git repositories over SSH

Wednesday, November 2, 2016

VSIX: Get list of configurations for a project


var solution = VsixHelper.Ide.Solution;
var projects = solution.GetProjects();

foreach (var project in projects)
{
    System.Diagnostics.Debug.WriteLine("*** {0}", project.Name);

    var configurations = project.GetConfigurations();

    foreach (var configuration in configurations)
    {
        System.Diagnostics.Debug.WriteLine("{0}", configuration.ConfigurationName);
    }
}


namespace Vurdalakov
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using EnvDTE80;
    using EnvDTE;
    using Microsoft.VisualStudio.Shell;

    public static class VsixHelper
    {
        public static Configuration[] GetConfigurations(this Project project)
        {
            if ((null == project) || (null == project.ConfigurationManager))
            {
                return new Configuration[0];
            }

            var configurations = new List();

            for (int i = 1; i <= project.ConfigurationManager.Count; i++)
            {
                configurations.Add(project.ConfigurationManager.Item(i));
            }

            return configurations.ToArray();
        }
    }
}