# Setting Up ProteanCMS

Follow these steps to clone and set up the ProteanCMS environment in Visual Studio.

---

### Step 1: Clone the Repositories
First, clone the required repositories to your local machine:

- Clone **ProteanCMS** to `D:/HostingSpaces/ProteanCMS`
- Clone **ProteanCMS-AddOns** to `D:/HostingSpaces/ProteanCMS-AddOns`

---

### Step 2: Open the Solution in Visual Studio
- Open `ProteanCMS.sln` in Visual Studio.

---

### Step 3: Reinstall Packages
In the **Package Manager Console**, run the following command to get the latest 3rd-party packages:

```powershell
Update-Package -reinstall
```

---

### Step 4: Create the Solution
In Visual Studio, create a new blank solution:

- Save the solution in: `D:/HostingSpaces/YourClients/clientname`.

---

### Step 5: Add Existing Projects to the Solution
Add the following existing projects to the solution:

- **Website Project:** Add your website.
- **Protean Tools:**  
  - `D:/HostingSpaces/ProteanCMS/Assemblies/Protean.Tools`
  - `D:/HostingSpaces/ProteanCMS/Assemblies/Protean.Tools.Csharp`
  - `D:/HostingSpaces/ProteanCMS/Assemblies/ProteanCMS`
- **Add-ons/Providers (if applicable):**  
  - For example: `D:/HostingSpaces/ProteanCMS-AddOns/Providers/Messaging/CampaignMonitor`.

---

### Step 6: Add References and Set Project Dependencies
- Add references to the website.
- Set up project dependencies:  
  - **wwwroot** depends on **ewCommon**.  
  - **ewCommon** depends on **Tools/CMS**.  
  - **CMS** depends on **Tools**.

---

### Step 7: Build the Solution
- Build the solution to ensure everything compiles correctly.

---

### Step 8: Commit the Solution and Files
- Once the solution builds successfully, commit the solution and the relevant files.

---

### Step 9: Reinstall Packages (Optional)
If you want to reinstall the packages to the previously installed versions, use the `-reinstall` argument with the `Update-Package` command:

```powershell
Update-Package -reinstall
```

To restrict this to a single project, use:

```powershell
Update-Package -reinstall -Project YourProjectName
```

---

- [Back to ProteanCMS Version 5](/Front-End-Developer-Guide/v5)

---
