vs 2003 bug with embedded resources

Published 03-29-2006 10:22 AM | jokiz

an officemate of mine got this problem wherein he had specified already the mapping xml files for nhibernate but when he tries to debug it, it was not able to load the said mapping files.  turns out he found a bug in vs 2003 that i should have found out months ago.

visual studio 2003 does not detect changes to files configured as embedded resource so if these are the only files that you edited and you do a build (build does a rebuild if vs has detected a change by the way),
your assembly will not be updated since vs did not detect any change.

i had this problem in my last project when i just edited the strings in a resx file and did not see the changes reflected when i do an f5-run.  it's a mess because i ended up restarting the IDE since i could not figure out the problem then.

problem is i could not find a single kb about this and all i can find in usenet is it is a known bug.  good thing the nhibernate docs has this bug cited in their documentation.

Filed under: , ,

Comments

# rdagumampan said on March 28, 2006 7:43 PM:

embedded resource gives me a lot of headache also  in VS 2005. When I accidentally delete a file under the resource folder, my toolbar disappear and all its buttons.