Пример #1
0
        private static async void SpriteImageSaved(object sender, SpriteImageGenerationEventArgs e)
        {
            ProjectHelpers.AddNestedFile(e.Document.FileName, e.FileName);

            var project = ProjectHelpers.DTE.Solution.FindProjectItem(e.Document.FileName)?.ContainingProject;

            if (project != null && project.IsKind(ProjectHelpers.ProjectTypes.ASPNET_5))
            {
                await Task.Delay(2000);
            }

            OptimizeImage(e.FileName, e.Document.Optimize);
        }
Пример #2
0
 private static void SpriteImageSaved(object sender, SpriteImageGenerationEventArgs e)
 {
     ProjectHelpers.AddNestedFile(e.Document.FileName, e.FileName);
     OptimizeImage(e.FileName, e.Document.Optimize);
 }