I'm storing SQL database backup file (*.bak) in the Visual Studio solution and checking it to TFS. However when I update this bacup file locally (backing up new database structure) it's not marked as "changed" in the solution explorer and not uploaded to TFS. How can I solve this problem and force VS to automatically check-in changed file.
You will have to manually check out the file, or write a script that runs as part of your backup routine to check out the file.
Try changing the extension of the file to something other than ".bak". Visual Studio may ignore any files of type ".bak" as these are usually backup files which should not be checked into the server.
Try using SVN bridge.
SvnBridge allows you to use TortoiseSVN and other Subversion clients with Team Foundation Server. It converts the calls made by your Subversion client to the API supported by TFS.
SvnBridge acts as a bridge between TortoiseSVN and TFS. You point SvnBridge at the TFS server, and point TortoiseSVN at SvnBridge. This allows you to use TortoiseSVN with any TFS server without needing to change the TFS server in any way (no need to convince your TFS system administrator of anything!).
There is two versions of SVNBridge: "SVNbridge client" and "SVNbridge server". The names are slightly misleading, as both of them run on your desktop computer, and you never need to install anything on the Team Foundation Server computer. Most developers will just run the "SVNbridge client" version, which sits in your system tray. However, if you have multiple SVN developers, you can let them all dial into your computer using the "SVNbridge server" version, and in effect your computer becomes a SVN server which in turn talks to Team Foundation Server.
Download it here: http://www.codeplex.com/SvnBridge
Perhaps if you're both logged in as Administrator, it causes synchronization problems? Try creating a separate account for all users in the system. This setup would be closer to the original environment that Microsoft tested the software in.
- Install the power tools
- For easy checkout/checkin from Windows Explorer, make sure you select the appropriate option in the installer (it's unchecked by default).
- For easy scripting -- or if you're just a command line kind of guy like me -- run 'tfpt online /?' and review the available options. The tool can automatically pend edits based on file attributes or MD5 hashes. You also have the option to diff the tree structure for added or deleted files. (No support for autodetecting renames; pend them manually).
As another poster mentioned, you can use SvnBridge instead of #2. Their integration with Explorer (eg Tortoise) is probably more robust at the moment than the MS shell extension, which is in its very first release. However, it's no substitute for the rest of the power tools, which I think any power user will find invaluable.