/[RomCheater]/trunk/MSBuild_CurrentVersion/Program.cs
ViewVC logotype

Diff of /trunk/MSBuild_CurrentVersion/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 117 by william, Thu May 10 18:12:06 2012 UTC revision 181 by william, Mon May 28 10:03:08 2012 UTC
# Line 40  namespace MSBuild_CurrentVersion Line 40  namespace MSBuild_CurrentVersion
40                      //if (ns.Contains("CorePlugins")) { ns = string.Format("{0}.{1}", t.Namespace, t.Name); }                      //if (ns.Contains("CorePlugins")) { ns = string.Format("{0}.{1}", t.Namespace, t.Name); }
41                      //if (ns.Contains("Be.Windows.Forms")) { ns = pair.Key; }                      //if (ns.Contains("Be.Windows.Forms")) { ns = pair.Key; }
42                      FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);                      FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);
43                      Console.WriteLine(string.Format("    {0} v{1} {2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));                      string version = fvi.FileVersion;
44                      sw.WriteLine(string.Format("    {0} v{1} {2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));  #if DEBUG
45                        version.Replace("-release", "-debug");
46    #endif
47    #if RELEASE
48                       version.Replace("-debug", "-release");
49    #endif
50    
51                        Console.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));
52                        sw.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));
53                  }                  }
54                  sw.Close();                                  sw.Close();                
55              }              }
# Line 53  namespace MSBuild_CurrentVersion Line 61  namespace MSBuild_CurrentVersion
61    
62              foreach (ProcessorAssemblyArchitecture arch in attributes)              foreach (ProcessorAssemblyArchitecture arch in attributes)
63              {              {
64                  return arch.ProcessorArchitecture;                  return arch.Architecture;
65              }              }
66              return ProcessorAssemblyArchitecture.Undefined;              return ProcessorAssemblyArchitecture.GetProcessorArchitecture(t);
67          }          }
68    
69          static Dictionary<string, Type> CreateAssemblyDictonary()          static Dictionary<string, Type> CreateAssemblyDictonary()
# Line 63  namespace MSBuild_CurrentVersion Line 71  namespace MSBuild_CurrentVersion
71              Dictionary<string, Type> dict = new Dictionary<string, Type>();              Dictionary<string, Type> dict = new Dictionary<string, Type>();
72    
73              #region assemblies              #region assemblies
74              dict.Add("RomCheater.exe", typeof(RomCheater.Main));              dict.Add("RomCheater.Core.dll", typeof(RomCheater.Core.dummy));
75                            dict.Add("RomCheater.exe", typeof(RomCheater.Main));            
76              dict.Add("RomCheater.Logging.dll", typeof(RomCheater.Logging.logger));              dict.Add("RomCheater.Logging.dll", typeof(RomCheater.Logging.logger));
77              dict.Add("RomCheater.PluginFramework.dll", typeof(RomCheater.PluginFramework.dummy));              dict.Add("RomCheater.PluginFramework.dll", typeof(RomCheater.PluginFramework.dummy));
78              dict.Add("RomCheater.UserSettingsSupport.dll", typeof(RomCheater.UserSettingsSupport.SettingSubscriber));              dict.Add("RomCheater.UserSettingsSupport.dll", typeof(RomCheater.UserSettingsSupport.SettingSubscriber));
# Line 78  namespace MSBuild_CurrentVersion Line 86  namespace MSBuild_CurrentVersion
86              #region deps              #region deps
87              dict.Add("Be.Windows.Forms.HexBox.dll", typeof(Be.Windows.Forms.HexBox));              dict.Add("Be.Windows.Forms.HexBox.dll", typeof(Be.Windows.Forms.HexBox));
88              dict.Add("Utilities.TransparentControls.dll", typeof(Utilities.TransparentControls.Win32));              dict.Add("Utilities.TransparentControls.dll", typeof(Utilities.TransparentControls.Win32));
89                dict.Add("ManagedWinapi.dll", typeof(ManagedWinapi.ClipboardNotifier));
90                dict.Add("WeifenLuo.WinFormsUI.Docking.dll", typeof(WeifenLuo.WinFormsUI.Docking.DockPanel));
91              #endregion              #endregion
92    
93              #endregion              #endregion

Legend:
Removed from v.117  
changed lines
  Added in v.181

  ViewVC Help
Powered by ViewVC 1.1.22