4
我写了一个程序,使对Microsoft.Web.Administration.dll参考, 中不存在在Windows Server 2003上何时引用装配体?
对OS的程序检查,并且不基准的DLL如果操作系统是2003 。
if(OSVersion == WindowsServer2003)
//do the job without referencing the Microsoft.Web.Administration.<br>
else if(OSVersion == WindowsServer2008)
//reference the Microsoft.Web.Administration.dll file.<br>
当我测试这个程序在Windows Server 2003上,发生了错误,告诉我它无法找到Microsoft.Web.Administration.dll。
但是,当我把if-else块分成两个不同的方法如下,并且没有发生错误。
if(OSVersion == WindowsServer2003)
//do the job without referencing the Microsoft.Web.Administration.<br>
else if(OSVersion == WindowsServer2008)
//DoIt2008Style();
所以我想了解更详细的参考文件加载时间。 你能指点我一些资源吗?
链接中断 – 2015-02-19 19:36:45
现在修复,谢谢。 – 2015-02-23 18:35:42