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

visual studio 2010 conditional references

You should be able to do this with conditional constructs by editing the project file directly (VS IDE won’t do this for you). For example, you might do something like this using the “Choose” element: <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″ > <PropertyGroup> <!– … –> </PropertyGroup> <Choose> <When Condition=” ‘$(Configuration)’==’Debug’ “> <ItemGroup> <ProjectReference Include=”..\stuff\MyStuff.csproj”> <Project>{4c7bbe47-8d84-45d4-95f0-f640ba59563c}</Project> <Name>MyStuff</Name> </ProjectReference> </ItemGroup> … 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

Connect VS code with TFS on mac

This are the steps to effectively connect a TFS (TFVC) Repository to your VS Code on Mac: INSTALL THE SOFTWARE Install Visual Studio Code for Mac (currently here: https://code.visualstudio.com/download). Install the TFS extension for VS Code: Go to the Extensions tab in VS Code, Search for TFS and install. Install TEE-CLC. Follow this guide: https://www.youtube.com/watch?v=VPNaEIVZfr0&feature=youtu.be. … 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