开发者

TFS automatically checks out a windows form when the form is opened in VS2010

I have a VS2010 Winforms project with several for开发者_JS百科ms and user controls, all integrated with TFS. Every time I open one of the forms in the designer, it checks itself out and acts like changes have been made, even though none have. This happens for everyone working with this project, and only happens with this one particular form. Anyone have any idea what could be causing this?


I think the WinForms designer regenerates the form.designer.cs file whenever you open it, thus causing a checkout. Of course the file doesn't end up with any different code, but it got rewritten again.

Also, if you have code in your constructor, this DOES get run by the designer. Maybe that code is is setting a property on a control (but not to a new value) which causes the designer to want to regenerate the file.


Could it be changing the encoding? Locate the file in the Pending Changes window and see if the Change is listed as "type,edit".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜