Cannot Edit Context on Visual Studio
search cancel

Cannot Edit Context on Visual Studio

book

Article ID: 409789

calendar_today

Updated On:

Products

CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

We cannot edit context.

I was using two cases:

I have a solution on Visual Studio and I want to load into a new project. 

I tried to load a solution from Harvest and want to add into visual studio.

The icons are greyed. 

Environment

Harvest Software Change Manager v14.x

Visual Studio (version compatible with SCM version as per documentation)

Harvest Visual Studio Plugin

Cause

The solution open in Visual Studio is not properly "bound" to a project in the Harvest repository.  Add the solution to a Harvest project to resolve the problem.

Resolution

Here's how to accomplish these things:

If you have a Visual Studio solution that you want to check into a Harvest project,

  1. In the Harvest Administrator Tool, if necessary, create a new repository
  2. In the Harvest Administrator Tool, if necessary, create a new project and add the new repository to the baseline of the new project
  3. In Visual Studio, open the solution you want to add to Harvest
  4. Check Tools -> Options -> Source Control -> Plug-in Selection to be sure "CA Harvest Software Change Manager" is selected.
  5. In the Solution Explorer, right click on the solution and then in the menu select "Add Solution to CA Harvest SCM"
  6. Login to the Harvest broker and click "Next"
  7. Select the Project, State, Data View and Package (if the package doesn't exist, click the green "+" button to add a package) and click "Next"
  8. Select the repository path (and if desired, check the checkbox for "Create Directory for Solution" and click "Finish"
  9. And the Visual Studio solution is now checked into the Harvest project and repository

 

If you have a Visual Studio solution that has been checked into Harvest using Workbench, (or checked into Harvest from another user's Visual Studio) and you want to open this project in Visual Studio,

  1. First ensure the solution was checked into Harvest correctly.  Depending on the type of solution, the files and folders checked in might vary but there should be a "sln" file in the root folder for the solution.  For example:
  2. Navigate to CA Harvest SCM Explorer, and to the project and state.  
  3. Locate the sln file, then right click and select "Open Solution from CA Harvest SCM"