/[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 143 by william, Fri May 11 11:37:14 2012 UTC revision 183 by william, Mon May 28 10:14:03 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 = string.Format("{0}-debug", version);
46    #endif
47    #if RELEASE
48                       version = string.Format("{0}-release", version);
49    #endif
50    
51                       Console.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));
52                       sw.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));
53                  }                  }
54                  sw.Close();                                  sw.Close();                
55              }              }

Legend:
Removed from v.143  
changed lines
  Added in v.183

  ViewVC Help
Powered by ViewVC 1.1.22