Eclipse based IDEs such as Flash Builders have problem with generated source code with TFS 2010 (Visual Studio Team Foundation 2010 Everywhere), and here is the workaround to solve this problem.
Eclipse monitors file system changes and automatically adds all generated files in the Team Foundation Server. Now TFS Everywhere for Eclipse does not support ignoring a folder. Eclipse keeps on adding code of your Web Service generated code in TFS and finally TFS shows lot of files in pending check ins. However if you check-in them, then next time, your code generation tools will not work correctly because files will have to be checked out. And even if you do, code generation will delete some files, and TFS will give error that it can not file and will not let you check-in new items.
- TFS will not let source code generator generate new files, as they are not checked out.
- After checking out, Deleted files will give errors while checking new files.
Web Library Projects as Solution
We ran with exact same problem with Eclipse to manage flex and java projects. Mostly the web service client code are generated dynamically and we really do not want it to go in TFS. So we created library projects and we only stored library project’s configuration in the TFS.
We can import the WebLibs in our main projects, there are various advantages.
- The generated code stays out of TFS.
- Compiled code of WebLibs takes lesser time to build project.