Sunday 2 May 2010

Visual Studio .NET - Build vs. Rebuild catch

An interesting thing to note with Visual Studio is that when you select Build, Visual Studio compares the current output of your solution with the source code. If the source code matches that of the code found in the assembly, it will take no action (build not required).

Although this makes sense, Visual Studio doesn't look at other files. Therefore if you alter a resource such as an xml file within your solution, Building it will not incorporate any changes into the output folder. You must specifically choose Rebuild.

No comments:

Post a Comment