Visual Studio 2015 Update 1 Bug Ldquoan Error Was Encountered During Code Genera
If you work in Visual studio 2015 update 1 and got issue like this“
An error was encountered during code generation. The changes you have made in the designer have not been committed to the source code”
then you are not alone. Many developer found this issue. Check this page https://msdn.microsoft.com/en-US/library/mt634751%28VS.140%29.aspx?f=255&MSPPError=-2147217396 for detail.
For fix this problem install this https://www.microsoft.com/en-us/download/confirmation.aspx?id=50376
This will fix this problem in Visual studio update 1.