IBM Support

How to add existing Visual Studio .NET projects to Rational ClearCase source control

Question & Answer


Question

How can you add an existing Microsoft Visual Studio.NET (non-ASP.NET Web Application) project (version 2002, 2003, 2005, 2008, 2010, 2012) to IBM Rational ClearCase source control?

Cause

If you have not yet attempted to add your existing Visual Studio.NET (VS.NET) solution or project to ClearCase source control, follow the procedure below.


IMPORTANT: If you have already attempted to manually add your existing Visual Studio.NET (VS.NET) solution or project to ClearCase source control and you are having problems, review theDISCLAIMER at the end of this technote for instructions.

Add a New VS.NET Project to ClearCase.

Follow the instructions in the Online Help.included with ClearCase (Start > Programs > IBM Rational > IBM Rational ClearCase > Online Help > Rational ClearCase integrations with vendor products > Microsoft VS.NET)

Add a New ASP.NET (Framework 1.x) Project to ClearCase:

If you need to add a new ASP.NET (Framework 1.x) solution or project to source control with ClearCase, refer to technote 1129588.

Add an existing ASP.NET Project to ClearCase:

If you need to add your existing ASP.NET project to source control, refer to the following technotes:

Answer

Add existing Visual Studio.NET projects to ClearCase:

  1. Create a VOB and view to use with your VS.NET 2005, 2008, 2010 project.

  2. Copy the VS.NET Projects into the view or VOB directory.

    Note: DO NOT add to source control at this time.

  3. Start VS.NET and select Open Project.

  4. Browse to the view and VOB which contains the copied project.

  5. Open the Solution (.sln) file.

    Note: If you see a dialog box stating The project location is not fully trusted…, click OK to dismiss it.

    Refer to technote 1131958 The project location is not fully trusted by the .NET run time for information about a procedure to suppress the warning message about "Project Location not fully trusted."
  6. In the VS.NET Solution Explorer, right-click on the Solution (highest node in tree) and select Add Solution to Source Control.



DISCLAIMER:

If you have already attempted to manually add your solutions or projects to ClearCase source control in any way that does not follow the above procedure, then you must remove (rmelem) everything from ClearCase and start over using the above procedure.

While it is possible to salvage an attempt to manually add a VS.NET project or solution to ClearCase source control, every project and solution has a different combination of files and directories that must be left outside source control as view private.

Given the large, and growing, number of VS.NET project types, Rational Technical Support cannot account for every file and directory that must be left out of source control. Therefore, any attempt to manually add an existing VS.NET project to ClearCase source control that does not follow the above procedure will not be supported.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Integrations: Visual Studio.NET","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.1;7.1;7.1.1;7.1.2;8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2018

UID

swg21129529