Revert "[Core] Fix a regression from e0cf1483 when saving csproj"

This reverts commit d61210fd7f3d31073b82abe3a4aaba4587a3854c.

It breaks saving of values that changed to the default value.