Check out Git, then commit to it
- What is TFS?
- Pricing and options
- More than just version control
- UML Diagrams:
- New Build System with 2015
- TFS setup
- Git vs. TFS
- Visual Studio GUI
- Git is King?
- git-tfs bridge
- Remove TFC bindings
- README.md Markdown File
- Keeping history
- Virtual Environments
- More on DevOps
- More about Git & GitHub
What is TFS?
TFS (Team Foundation Server) is licensed from Microsoft.
TFS is available to subscribers of MSDN. The over 100 different downloads of TFS are to these dimensions :
- Visual Studio vs. core
- Express vs. not.
- Version (2015, 2013, 2011, etc.)
- Update level (None, 1, 2, 3, etc.)
Web Installer vs. full download
- Release Management made its debut with 2013
- Project Server Extensions made its debut with 2015
Office Integration made its debut with 2015
- Feedback Client for VS TFS 2015 dated 9/17/2015
- Team Explorer Everywhere for TFS 2012, 32 MB provides access to TFS from Linux, with an Eclipse plug-in.
The sizes of installers:
|03/30/2016||2015||2||Standard||461 MB||461 MB|
|08/06/2015||2015||-||VS||891 MB||911 MB|
|07/10/2015||2013||5||VS||531 MB||2518 MB|
|11/24/2014||2013||4||VS||530 MB||531 MB|
|11/24/2014||2013||3||VS||531 MB||2517 MB|
|04/02/2014||2013||2||VS||529 MB||2515 MB|
|11/13/2013||2012||4||VS||484 MB||1170 MB|
|11/11/2013||2013||-||VS||506 MB||2481 MB|
|06/26/2013||2012||3||VS||483 MB||1168 MB|
|04/04/2013||2012||2||VS||483 MB||1167 MB|
|12/12/2012||2012||1||VS||465 MB||1135 MB|
|08/15/2012||2012||-||VS||447 MB||1104 MB|
Internally, TFS has a Standard vs. Basic configuration.
Update 2 of Team Foundation Server 2015 dated 3/30/2016 consisted of these downloads for (x86 and x64) - DVD (English) :
TFS Express, 461 MB
TFS Express - Web Installer, 2 MB
TFS (core), 461 MB
TFS (core) - Web Installer, 2 MB
TFS Office Integration, 139 MB
TFS Office Integration - Web Installer, 2 MB
TFS Project Server Extensions, 3 MB
TFS Project Server Extensions - Web Installer, 2 MB
Release Management Server for TFS - Web Installer, 2 MB
Visual Studio 2015 with Update 1 dated 11/30/2015:
Visual Studio TFS Office Integration - Web Installer, 2 MB
Visual Studio TFS Office Integration, 240 MB
Release Management Server for Team Foundation Server 2015 with Update 1 (x86 and x64) - Web Installer (English)
Visual Studio Team Foundation Server Express 2015 with Update 1 (x86 and x64) - DVD (English)
Visual Studio Team Foundation Server Extensions for Project Server 2015 with Update 1 (x86 and x64) - DVD (English)
Visual Studio Team Foundation Server Express 2015 with Update 1 (x86 and x64) - Web Installer (English)
Visual Studio Team Foundation Server 2015 with Update 1 (x86 and x64) - Web Installer (English)
Visual Studio Team Foundation Server 2015 with Update 1 (x86 and x64) - DVD (English)
Pricing and options
Microsoft’s Express editions are free for up to 5 users. Express TFS makes use of Express SQL.
Microsoft offers hosting on codeplex.com, Microsoft’s open source project hosting site.
A 30-day free trial of TFS cloud service is available from DiscountASP.
More than just version control
TFS is the community server behind Microsoft’s Visual Studio IDE.
In 2010, TFS was primarily a replacement for Visual Source Safe product.
In 2012, TFS became a part of Microsoft’s new ALM (Application Lifecycle Management) “best practices”:
- Version Control
- Agile Planning - Plan and Track
- Automated Build
- Testing & Defect Tracking
- Test Lab Management
In 2015 TFS added more tools:
- Layer Diagrams
- Architecture Validation
Code Analysis makes suggestions based on IL inspections
- Unit Testing
- Code Metrics (Cyclometric Complexity)
Code Coverage results appear in Build reports
- During Manual Testing, capture video and IntelliTrace
- Test Impact Analysis
“Coded UI” testing
- Performance Testing (Lab Management)
- Activity - flow of work between actions and participants
- Component - Interfaces, prots, relationships
- Class - types and relationships
- Sequence - interactions between objects and components
- Use case - goals and tasks
New Build System with 2015
http://aka.ms/vsopreview describes the TFBuild (Team Foundation Build) yet also supports Java, Linux, and Apple XCode (XPlat), on-prem or in the cloud with Visual Studio Online.
TFBuild also supports previous XAML-based MSBuilds.
Several TFBuild servers can run at once in parallel. Each server uses a pool of Agents that can be used across several Collections. Each collection has a queue. An agent can belong to several queues.
There is only one repository in each machine hosting TFS. Git allows for many repos.
In TFS, create a team project, then folders for each individual project and branches.
PROTIP: Naming conventions for team project name?
TFS 2012 had 3 process templates to define work item field names:
- Visual Studio scrum 2.0
- MSF for Agile Software Development 6.0
- MSF for CMMI Process Improvement 6.0
- SAFe for enterprises?
IN VS, a new project can be added to TFS with a checkbox, or added by right-clicking the Solution node.
Git vs. TFS
TFS is a centralized version while
Git is distributed as everyone has a full copy of the whole repo and its history.
TFS has its own language: Check-in/Check-out is a different concept.
TFS users “check-in” which invokes file locking whereas
Git users do commits based on distributed full versions with difference checking.
TFS provides a “shelf” to hold local changes temporarily.
Git provides a stash area away from items being committed.
Shelve-sets in TFS are stored in the centeral server.
Stashed items in Git remain local machine.
TFS groups changes in sequentially numbered changesets.
Git assigns a 32-byte hash to each commit.
TFS branches creates a new folder.
This site summarizes the differences:
|Check-In||Commit + Push|
|Get Latest Version||Pull|
|‘Map Local Path’||Clone|
|Shelve||Stash (only local though)|
|‘Compare Local to Server’||Fetch|
|Checkin and get Latest||Sync|
Visual Studio GUI
To check-in right-click on the app within Team Explorer. For VS 2013:
To see differences, right-click on the folder within Source Control Explorer. For VS 2013:
To apply a label, select Advanced: For VS 2013:
Click on an item within History compare: For VS 2013:
To work on individual files, right-click on the file within Solution Explorer. For VS 2013:
Git is King?
Public repository websites at even Google and others have moved to adopt Git and GitHub.
Visual Studio 2015 provides support for both GitHub and TFS.
As http://git-tfs.com/ describes, use Chocolately on a Windows machine:
The above is equivalent to:
choco insttall Git-tf -y
Alternately, follow manual instructions at https://gittf.codeplex.com/
This installs the contents of https://github.com/git-tfs/git-tfs
Clone using the
git-tfs command rather than
<strong>git-tfs</strong> clone http://github.com/etc.
Remove TFC bindings
TFS source control bindings (*.vssscc files) are unique to TFS. So remove it. This can be done from within Visual Studio.
Edit your .sln file to remove the
GlobalSection(TeamFoundationVersionControl) ... EndGlobalSection
README.md Markdown File
One artifact unique to GitHub is the README.md file (where .md means markdown or text).
It’s optional but most GitHub repos have one.
The issue is keeping history
John Brown of TritiumConsulting.com presented a video course with Pluralsight https://app.pluralsight.com/library/courses/tfs-integration/table-of-contents
AMong Visual Studio ALM virtual machines VHD avaialble 10 days at a time.
Azure Active Directory (AAD) Authentication Plug-in for SonarQube The AAD OAuth2 provider for SonarQube, created by Hosam Kamel and Jean-Marc Prieur (product owner), enables AAD users to automatically be sign up and authenticated on a SonarQube server.
Microsoft’s TailSpin toys sample MVC 2 ordering application was first released for Visual Studio.NET 2003 building a 3-tier app with a SQL 2000 XML service via OLE DB with COM Interop.
Brian Keller, Principal Technical Evangelist, Visual Studio ALM for Microsoft, built for VS 2010 a virtual machine image with sample data and 14 hands-on labs to a ficticious (http://bit.ly/aC5Lb2) Tailspin Toys end-to-end eCommerce sample MVC 2 application. This expired in 2012 VSKitFdbk@Microsoft.com
https://msdn.microsoft.com/en-us/library/aa645517(v=vs.71).aspx Tailspin Toys Application Visual Studio .NET 2003
The new home for ALM is at http://vsalmvm.azurewebsites.net/
https://technet.microsoft.com/en-us/virtuallabs?f=255&MSPPError=-2147217396 TechNet Virtual Lab: Introduction to Team Foundation Build 2015 (vNext), Test Run Analysis and Machines
Lynda video course shows several version control products, including use of TFS by Visual Studio 2012.
https://msdn.microsoft.com/en-us/library/jj190809.aspx VS 2015 with Git Branches
svnvsgit.com compares SVN vs Git.
More on DevOps
This is one of a series on DevOps:
- ci-cd (Continuous Integration and Continuous Delivery)
- Git and GitHub vs File Archival
- Git Commands and Statuses
- Git Commit, Tag, Push
- Git Utilities
- Data Security GitHub
- GitHub API
- Choices for DevOps Technologies
- Java DevOps Workflow
- AWS DevOps (CodeCommit, CodePipeline, CodeDeploy)
- Cloud regions
- AWS Virtual Private Cloud
- Azure Cloud Onramp
- Azure Cloud
- Azure Cloud Powershell
- Digital Ocean
- Packer automation to build Vagrant images
Terraform multi-cloud provisioning automation
- Powershell Ecosystem
- Powershell on MacOS
- Jenkins Server Setup
- Jenkins Plug-ins
- Jenkins Freestyle jobs
- Dockerize apps
- Docker Setup
- API Management Microsoft
- Scenarios for load
More about Git & GitHub
This is one of a series on Git and GitHub:
- Why Git? (file-based backups vs Git clone)
- Git basics (script)
- Git whoops (correct mistakes)
- Git command shortcuts
- Git interactive merge (imerge)
- Git patch
- Git hooks
- GitHub data security
- GitHub REST API
- GitHub GraphQL API
- GitHub PowerShell API Programming
- GitHub GraphQL PowerShell Module