/[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 118 by william, Thu May 10 18:25:36 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)));                      Console.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));
44                      sw.WriteLine(string.Format("    {0} v{1} {2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));                      sw.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, fvi.FileVersion, GetAssemblyArchitecture(asm)));
45                  }                  }
46                  sw.Close();                                  sw.Close();                
47              }              }
# Line 53  namespace MSBuild_CurrentVersion Line 53  namespace MSBuild_CurrentVersion
53    
54              foreach (ProcessorAssemblyArchitecture arch in attributes)              foreach (ProcessorAssemblyArchitecture arch in attributes)
55              {              {
56                  return arch.ProcessorArchitecture;                  return arch.Architecture;
57              }              }
58              return ProcessorAssemblyArchitecture.Undefined;              return ProcessorAssemblyArchitecture.GetProcessorArchitecture(t);
59          }          }
60    
61          static Dictionary<string, Type> CreateAssemblyDictonary()          static Dictionary<string, Type> CreateAssemblyDictonary()

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

  ViewVC Help
Powered by ViewVC 1.1.22