/[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

--- trunk/MSBuild_CurrentVersion/Program.cs	2012/05/28 10:08:44	182
+++ trunk/MSBuild_CurrentVersion/Program.cs	2012/05/28 10:26:01	186
@@ -42,14 +42,15 @@
                     FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);
                     string version = fvi.FileVersion;
 #if DEBUG
-                    version = string.Format("{0}-debug", version);
+                    version = string.Format("{0}", version);
+                    
 #endif
 #if RELEASE
-                   version = string.Format("{0}-release", version);
+                   version = version.Replace("-debug", "-release");
 #endif
 
-                    Console.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)));
+                    Console.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)));
                 }
                 sw.Close();                
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22