/[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 185 by william, Mon May 28 10:14:03 2012 UTC revision 186 by william, Mon May 28 10:26:01 2012 UTC
# Line 42  namespace MSBuild_CurrentVersion Line 42  namespace MSBuild_CurrentVersion
42                      FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);                      FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);
43                      string version = fvi.FileVersion;                      string version = fvi.FileVersion;
44  #if DEBUG  #if DEBUG
45                      version = string.Format("{0}-debug", version);                      version = string.Format("{0}", version);
46                        
47  #endif  #endif
48  #if RELEASE  #if RELEASE
49                     version = string.Format("{0}-release", version);                     version = version.Replace("-debug", "-release");
50  #endif  #endif
51    
52                     Console.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));                      Console.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));
53                     sw.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));                     sw.WriteLine(string.Format("    {0} v{1}-{2}", pair.Key, version, GetAssemblyArchitecture(asm)));
54                  }                  }
55                  sw.Close();                                  sw.Close();                

Legend:
Removed from v.185  
changed lines
  Added in v.186

  ViewVC Help
Powered by ViewVC 1.1.22