protected override void Clean(MonoDevelop.Core.IProgressMonitor monitor, SolutionEntityItem item, ConfigurationSelector configuration)
        {
            var proj = item as MonoGameContentProject;
            MonoGameContentProjectConfiguration cfg = null;

            if (proj != null)
            {
                cfg = proj.GetConfiguration(configuration) as MonoGameContentProjectConfiguration;
            }
            if (proj == null)
            {
                monitor.Log.WriteLine("Cleaning for Unknown MonoGame Project");
                base.Clean(monitor, item, configuration);
            }
            var manager = new PipelineManager(proj.BaseDirectory.FullPath,
                                              Path.Combine(cfg.OutputDirectory, cfg.MonoGamePlatform),
                                              cfg.IntermediateOutputDirectory);

            monitor.Log.WriteLine("Detected {0} MonoGame Platform", cfg.MonoGamePlatform);
            foreach (var file in proj.Files)
            {
                if (file.BuildAction == "Compile")
                {
                    try {
                        monitor.Log.WriteLine("Cleaning {0}", file.FilePath.FileName);
                        manager.CleanContent(file.FilePath.FullPath, null);
                    }
                    catch (Exception ex)
                    {
                        monitor.Log.WriteLine(ex.Message);
                    }
                }
            }
            base.Clean(monitor, item, configuration);
        }
예제 #2
0
        public override SolutionItemConfiguration CreateConfiguration(string name)
        {
            var conf = new MonoGameContentProjectConfiguration(name);

            conf.CopyFrom(base.CreateConfiguration(name));
            return(conf);
        }
예제 #3
0
		public void StorePanelContents (MonoGameContentProjectConfiguration cfg)
		{
			cfg.MonoGamePlatform = ((TargetPlatform)(cmbPlatforms.Active)).ToString();
			cfg.XnaCompressContent = chkCompress.Active.ToString();
		}
예제 #4
0
		public void LoadPanelContents (MonoGameContentProjectConfiguration cfg)
		{
			cmbPlatforms.Active = (int)Enum.Parse (typeof(TargetPlatform), cfg.MonoGamePlatform);
			chkCompress.Active = cfg.XnaCompressContent.ToLower() == "true";
		}
		public override SolutionItemConfiguration CreateConfiguration (string name)
		{
			var conf = new MonoGameContentProjectConfiguration (name);
			conf.CopyFrom (base.CreateConfiguration (name));
			return conf;
		}
예제 #6
0
 public void StorePanelContents(MonoGameContentProjectConfiguration cfg)
 {
     cfg.MonoGamePlatform   = ((TargetPlatform)(cmbPlatforms.Active)).ToString();
     cfg.XnaCompressContent = chkCompress.Active.ToString();
 }
예제 #7
0
 public void LoadPanelContents(MonoGameContentProjectConfiguration cfg)
 {
     cmbPlatforms.Active = (int)Enum.Parse(typeof(TargetPlatform), cfg.MonoGamePlatform);
     chkCompress.Active  = cfg.XnaCompressContent.ToLowerInvariant() == "true";
 }