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 for detail.

For fix this problem install this

This will fix this problem in Visual studio update 1.