简体   繁体   English

安装后,目标服务器网站bin文件夹中的所有DLL具有与Web安装程序MSI创建日期相同的时间戳记

[英]After installation, all DLLs in target server web site bin folder have same time stamp as Web Setup MSI created date

When the web setup project is built on Windows XP + VS.NET 2010, after installation the time stamp of third party referenced DLLs / referenced class library DLLs are preserved in the target server's web site bin folder. 在Windows XP + VS.NET 2010上构建Web安装项目时,安装后,第三方引用的DLL /引用的类库DLL的时间戳将保留在目标服务器的网站bin文件夹中。

I moved this solution to TFS 2010 + Windows 7 + VS.NET 2010 (did some changes to .sln / .vbproj files) and built the solution. 我将此解决方案移至TFS 2010 + Windows 7 + VS.NET 2010(对.sln / .vbproj文件做了一些更改)并构建了解决方案。 Now when this web setup project is installed on target server, the time stamp of third party referenced DLLs / referenced class library DLLs are not preserved in the target server's web site bin folder, instead all DLLs have same time stamp as web setup project created date. 现在,在目标服务器上安装此Web设置项目后,第三方引用的DLL /引用的类库DLL的时间戳不会保留在目标服务器的网站bin文件夹中,而是所有DLL都具有与Web设置项目创建日期相同的时间戳。 Also, it seems that web setup project is not taking third party referenced DLLs / referenced class library DLLs from bin folder of web site. 此外,似乎Web安装项目没有从网站的bin文件夹中获取第三方引用的DLL /引用的类库DLL。 Additional note: Web setup project says that Precompiled Web Outputs from “XXX Web Deploy Project”. 附加说明:Web安装项目说“ XXX Web Deploy项目”中的预编译Web输出。

Any suggestion what can cause this issue? 有什么建议可以导致此问题?

Thank you. 谢谢。

I'm not sure what caused the behavior change, but the new time stamps are the correct ones. 我不确定是什么原因导致了行为改变,但是新的时间戳是正确的。

When generating a setup package, the build process should use copies of the files you included in it. 生成安装程序包时,构建过程应使用其中包含的文件的副本。 These copies are created when you build your package, so they should have the same time stamp as the package. 这些副本是在构建软件包时创建的,因此它们应与软件包具有相同的时间戳。

For regular installers, the time stamps are the installation time because this is when the new copies are created on the target machine. 对于常规安装程序,时间戳是安装时间,因为这是在目标计算机上创建新副本的时间。

As a side note, you should never rely on time stamps for installation files. 附带说明,您永远不要依赖时间戳记安装文件。 There are too many copy operations performed to keep track of what times are used. 太多的复制操作无法跟踪使用了什么时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM