In a web site I have a reference to a class library assembly. When I add something to the source code and build the solution the update does not reflect to the bin folder of the web site. I first thought dll refresh did not work so that the dll in my bin folder was not updated to the latest version. But then I found two things that seem weird:
- 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 side. However if I select that field name, right click on it and choose “Rename oldname to newname” and then build, it works.
- When I add another public const string field and build the solution, the update does not get reflected.
Is this a know bug with VS2012 or is this an intended feature? I can understand the first case. But the second case absolutely seems to be a bug and there’s nothing like intended feature. I wanted to check with SO before reporting this to VS team as a bug.
I did not use to have this problem with Visual Studio 2010 ultimate. The current one I’m using is Visual Studio 2012 Ultimate
This definitely seems to be a bug. I’ve already reported this to Visual Studio team. But for the ones who suffer from this bug I have a solution until the bug is fixed.