I've got a VS/TFS2010 project in which we use a generated file. Here's how it works:
- There's a pre-build event that creates the file (foo.cs)
- The file is included in the project.
- The file is NEVER added to TFS version control.
It works great, except... People have an unfortunate habit of accidentally checking in the file. This, of course, breaks the system.
Are there any good ways to prevent this from happening? Can I at least set up some kind of watch mechanism to alert me if it does happen?