Hi
We are testing here TFS SP3, and have the following question. We have a website project, that uses TFS as source-control. When adding some files to the folder of the webpage, TFS automaticly adds it to the TFS Soruce control. But when doing checking, it always wants also to checking these files, but I don't want to checking that, as this is just test-data created on the local environment.
What do I have to do
Thanks
Patrick

How to exclude a Folder from a Webproject
crossow
1) The simplest is after the IDE automatically pends an add of your test data, right click on the file(s) and select "Undo Pending Change". It shouldn't try to automatically pend the add again.
2) If you have a folder under your web project that you don't want under source control at all. You can do that using the File -> Source Control -> Workspaces menu. You need to add an entry to for the folder and set its state to "Cloaked". This will prevent anything under that folder from being managed by version control.
You'll need to do this for every user. Also if you're files in that folder have already been checked in to version control, beware that doing a "get" after cloaking it will cause the local files to be deleted. You may want to rename the folder (using Windows explorer) away, do the get and then rename it back to prevent your files from being deleted.
I just tried this and found I got an unexpected error about trying to add an item to a cloaked folder but ignoring it seemed to work fine.
Maybe one of the version control integration guys have an even better suggestion for doing it.
Jason Bock
now that's a workaround I think everyone can live with! Thank you very much, Nagaraju!
JabberA
You can correct the TeamBuild issue by overriding AfterGet target to add an exec task and remove read-only attribute on these files, something like the following in TfsBuild.proj:
<Target Name="AfterGet">
<Exec Command="attrib -r $(SolutionRoot)\<MyWebSitePath>\bin\MyFile.xml" />
</Target>
The property SolutionRoot points to the sources root folder on build machine.
Lisa Ambler MSFT
you guys have got to be kidding with this kind of scenario.
with several developers working I can't have everyone checking all this each time they recompile a dependant DLL. This continually keeps breaking TeamBuild, because it can't overwrite the .XML file in the /bin dir.
I just hope you fix this by RTM - either in TeamBuild or within VS so that this problem doesn't occur all the time!