private void Execute(object sender, EventArgs e)
        {
            EnvDTE.ProjectItem item = YarnHelper.DTE.SelectedItems.Item(1)?.ProjectItem;

            if (item == null)
            {
                return;
            }

            string fileName = Path.GetFileName(item.FileNames[1]);

            if (!fileName.Equals(Constants.ConfigFileName, StringComparison.OrdinalIgnoreCase))
            {
                return;
            }

            string cwd = Path.GetDirectoryName(item.FileNames[1]);

            YarnHelper.Install(cwd);
        }
Beispiel #2
0
 private void Execute(object sender, EventArgs e)
 {
     YarnHelper.Install(_cwd);
 }