This commit is contained in:
Stone 2016-05-12 09:11:32 +00:00
parent 3f60a06f29
commit d01f047a3b
1 changed files with 5 additions and 1 deletions

View File

@ -884,7 +884,7 @@ namespace NewLife.Reflection
var ss = s.SplitAsInt("."); var ss = s.SplitAsInt(".");
Version = new Version(ss[0], ss[1]); Version = new Version(ss[0], ss[1]);
//if (!String.IsNullOrEmpty(ToolPath)) XTrace.WriteLine("从注册表得到路径{0} {1}", ToolPath, Version); if (!String.IsNullOrEmpty(ToolPath)) XTrace.WriteLine("从注册表得到路径{0} {1}", ToolPath, Version);
} }
} }
#endregion #endregion
@ -905,6 +905,8 @@ namespace NewLife.Reflection
ToolPath = p; ToolPath = p;
Version = ver; Version = ver;
if (!String.IsNullOrEmpty(ToolPath)) XTrace.WriteLine("从本地磁盘得到路径{0} {1}", ToolPath, Version);
break; break;
} }
} }
@ -912,6 +914,8 @@ namespace NewLife.Reflection
} }
if (Version < new Version(5, 17)) if (Version < new Version(5, 17))
{ {
XTrace.WriteLine("版本 {0} 太旧,准备更新", Version);
var url = "http://www.newlifex.com/showtopic-1456.aspx"; var url = "http://www.newlifex.com/showtopic-1456.aspx";
var client = new WebClientX(true, true); var client = new WebClientX(true, true);
client.Log = XTrace.Log; client.Log = XTrace.Log;