My preference is: If it’s modified by the build system, ensure the build process will create it and don’t check it in.
For autogenerated files like ‘designer’, I check them in. They only get modified when other components get changed (by me). It’s generated by VS and not modified by the build system.