How to unlock a file from someone else in Team Foundation Server

Here’s what I do in Visual Studio 2012 (Note: I have the TFS Power Tools installed so if you don’t see the described options you may need to install them. http://visualstudiogallery.msdn.microsoft.com/b1ef7eb2-e084-4cb8-9bc7-06c3bad9148f ) If you are accessing the Source Control Explorer as a team project administrator (or at least someone with the “Undo other users’ changes” … Read more

How can I exclude a specific file from TFS source control

It’s easy in TFS2012, create a .tfignore file http://msdn.microsoft.com/en-us/library/tfs/ms245454%28v=vs.110%29.aspx#tfignore ###################################### # Ignore .cpp files in the ProjA sub-folder and all its subfolders ProjA\*.cpp # # Ignore .txt files in this folder \*.txt # # Ignore .xml files in this folder and all its sub-folders *.xml # # Ignore all files in the Temp sub-folder \Temp … Read more

Why doesn’t TFS get latest get the latest?

TFS redefined what “Get Latest” does. In TFS terms, Get Latest means get the latest version of the files, but ignore the ones that the server thinks is already in your workspace. Which to me and just about everyone else on the planet is wrong. See this link: http://blogs.microsoft.co.il/blogs/srlteam/archive/2009/04/13/how-get-latest-version-really-works.aspx The only way to get it … Read more

Valid Parameters for MSDeploy via MSBuild

Here’s a list I’ve compiled for my own reference, along with some of the legal values that can be used. Note that these are passed into MSBuild using the /p:<PropertyName>=<Value> syntax. DeployOnBuild True False DeployTarget MsDeployPublish Package Configuration Name of a valid solution configuration CreatePackageOnPublish True False DeployIisAppPath <Web Site Name>/<Folder> MsDeployServiceUrl Location of MSDeploy … Read more

How can I always block checkin of a specific file in TFS

One of TFS undervalued features is cloaking. Like SVN’s ignore, cloaking will let you ignore a certain folder or files. Cloaking a Folder Cloaking a folder is easy: just right click a folder on the source control explorer and select Cloak Cloaking a File The UI doesn’t expose cloaking on a single file, but sometimes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)