Basic Source Control Operations Sample
The Basic Source Control Example includes one project. It shows how to build console applications to work with Source Control Extensibility without invoking the Visual Studio IDE.
To build the project
In the Sample Browser, right-click C# Example.BasicSccOperations, and select Open in VS.
For any missing references, manually re-add a reference to these DLLs in the Common7\IDE\PrivateAssemblies folder of your Visual Studio install path.
Microsoft.TeamFoundation.Client
Microsoft.TeamFoundation.VersionControl.Client
Microsoft.TeamFoundation.VersionControl.Common
Open VersionControlExample.cs.
Create a Team Project named "proj" or replace "$/proj" in VersionControlExample.cs with the name of your Team Project.
If you do not want to use the default of "d:\temp\BasicSccExample," edit line 50 to reference a local hard disk drive.
Press F6 to build the sample.
After building, type "BasicSccExample.exe" in the console to print its usage.
Requirements
Team Foundation Server installation and the name of the server.
A computer that has Visual Studio installed.
A computer that has Team Explorer installed.
Demonstrates
Shows how to write console-based access to the Version Control Server of Visual Studio 2005 Team System.
Source Files
VersionControl.cs
Main() |
|
OnNonFatalError() |
|
OnGetting() |
|
OnBeforeCheckInPendingChange |
|
OnNewPendingChange |
|