--- trunk/MSBuild_CurrentVersion/Program.cs 2012/05/28 09:49:07 180 +++ trunk/MSBuild_CurrentVersion/Program.cs 2012/05/28 10:03:08 181 @@ -40,6 +40,14 @@ namespace MSBuild_CurrentVersion //if (ns.Contains("CorePlugins")) { ns = string.Format("{0}.{1}", t.Namespace, t.Name); } //if (ns.Contains("Be.Windows.Forms")) { ns = pair.Key; } FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location); + string version = fvi.FileVersion; +#if DEBUG + version.Replace("-release", "-debug"); +#endif +#if RELEASE + 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))); } |