问题
I make updates in my web site code behind and then run Publish. The dll file is created but the modified date value remains a few months back, and the changes are not applied when I copy the dll file to the server.
The changes are very minor, like changing an if statement and updating an initial value of a variable.
What is the explanation?
Thank You.
回答1:
Try deleting temporary asp.net files and then re-publish the application.
You can find temporary ASP.NET Files in below path
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
From this location just delete your application. If you cannot delete the files, restart the IIS or stop the worker process (w3wp.exe)
After that just republish your site
回答2:
You have to update your AssemblyInfo.cs that there is a correct versioning and so on.
There you can set the current Date as Publishing date and it works
来源:https://stackoverflow.com/questions/19273164/dll-file-not-updated-when-publishing-web-site