Find Change in CSProj Before Commit without Custom Development

一笑奈何 提交于 2019-12-12 03:56:37

问题


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.


回答1:


TFS can't check integrity of CSProj file before it gets check-in. You could use a Gate-check in build. When you do a check, this build definition will run. If this build succees, it will check in code, if it failes, it won't check in your code. This will give you a remind and force to your add those missing class files.



来源:https://stackoverflow.com/questions/43693189/find-change-in-csproj-before-commit-without-custom-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!