private void GenerateSpriteCommand(object caller, EventArgs args)
        {
            var dte  = (DTE)GetService(typeof(DTE));
            var dte2 = (DTE2)dte;
            var imageOptimizations = new ImageOptimizations();

            foreach (UIHierarchyItem item in (IEnumerable)dte2.ToolWindows.SolutionExplorer.SelectedItems)
            {
                var projectItem = (ProjectItem)item.Object;
                imageOptimizations.ProcessDirectory(projectItem.FileNames[0]);
            }
        }
 public SpriteDirectoryPathKey(string value)
 {
     Value = ImageOptimizations.FixVirtualPathSlashes(value).ToUpperInvariant();
 }