In a solution I have an ASP.NET website and a class library project for accessing database, which I've called DAL. The web site has a reference to the DAL.dll. When I add or update something in the DAL source code and build the solution, I expect to have the DAL.dll in the bin folder of the web site to be refreshed too. But this does not seem to work. Here's what I've noticed:
1. In the DAL project I have a public struct inside which are number of public const string fields. If I change the name of any of those fields and build solution, the change does not get reflected on the web site. However if I select that field name, right click on it and choose "Rename oldname to newname" and then build, it works.
2. When I add another public const string field and build the solution, that newly added field is not available, so again the dll file does not refresh.
Of course if I build the project separately and add the dll file manually then there's no problem. Note that I have the refresh file in the bin folder and it clearly shows the path to the original dll.
You wouldn't deny that this is a very big problem and needs immediate handling, because otherwise the time spent is going to dramatically increase