ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/MSBuild_CurrentVersion/Program.cs
(Generate patch)

Comparing trunk/MSBuild_CurrentVersion/Program.cs (file contents):
Revision 185 by william, Mon May 28 10:14:03 2012 UTC vs.
Revision 186 by william, Mon May 28 10:26:01 2012 UTC

--- trunk/MSBuild_CurrentVersion/Program.cs	2012/05/28 10:21:03	185
+++ trunk/MSBuild_CurrentVersion/Program.cs	2012/05/28 10:26:01	186
@@ -42,13 +42,14 @@ namespace MSBuild_CurrentVersion
                     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, version, 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();