My question is somewhat related to this: Visual Studio 2013 Pending Changes does not include newly added item
I have one csproj file that is already checked in. Now somebody add some new file to project like class file or some resource file. As I am working in disconnected to TFS newly added file is not detected as change until I go to source control and add file.
Problem is somebody check-in the CSProj file without new file so at build server it get failed because he/she forgot to add newly added file because it is not detected automatically.
Is there any way we can check integrity of CSProj file before it get check-in so build will not get failed for this reason ?
Note : I want a way without any custom development like Policy or something.