Update Repository to Use Single Package
Copy
The latest release of Aras DevOps offers all essential Core Packages into a single NuGet Package. This simplifies the process of creating repositories and ensures that the Core Packages work seamlessly together.
The following steps outline the process of updating the Work Repository to use the Single Packages:
On Azure DevOps, select Repos.
- Click Clone to clone the Repository that needs to be updated. The Clone Repository dialog box appears with the Repository’s clone URL.
- Copy the clone URL (HTTPS or SSH). An example URL: https://dev.azure.com/{organization}/{project}/git/{repository}. Use any Version Control Tools required to clone the Repository.
- Find the option to clone or create a new Repository in the Version Control Tool’s interface.
- Paste the clone URL copied from the Azure DevOps project.
Browse to the destination directory to clone the Repository.
Optional: Depending on the tool used, additional configuration options are available during the cloning process. This could include selecting Branches, specifying authentication credentials, or choosing the desired clone depth.
- Click Clone within the Version Control Tool.
- Open Windows PowerShell as Administrator.
- Run ./repo-init.ps1 command for initializing the Repository with Initial Packages.
- To identify the source name of the Package that points to the NuGet feed containing the Single Package, run the Get-PackageSource command.
For the correct update, a list of Single Package Dependencies is required. The list will be compared to the individual Packages specified in the AutomatedProcedures/tools/packages config file.
- Remove-Module -Name “Aras.Devops” -Force
- Install-Module -Name “Aras.Devops” -RequiredVersion <new version>
- Import-Module -Name “Aras.Devops” -RequiredVersion <new version>
- To get dependencies of the NuGet Package, run Find-Package -Name “Aras.Saas.DevOpsFramework.Msi” -RequiredVersion "<single_package_version>" -Source <package_source_name> -IncludeDependencies | Select Name
- Navigate to the Local Repository and select the AutomatedProcedures file.
- Click Tools and open packages.config file.
- Locate the dependencies identified in step 10 and remove them from the packages.config file.
The following screenshot presents an example of the packages.config file with all Single Package Dependencies:
The following screenshot demonstrates the example of the packages.config file after the dependencies are removed:
- To restore the new Packages list with dependencies from NuGet, open Windows PowerShell as Administration and run the following command: Restore-ArasDevopsPackages -WorkRepository "<path_to_work_repository>”
Add the Work Repository path as a parameter. Ensure that the command is executed successfully and no errors appear in the console.
-
NoteThe init.ps1, update.ps1 and cleanup.ps1 scripts are executed (if present) only for Packages with names starting with Aras*.
- Verify any changes to NuGet Packages by checking the output of Restore-ArasDevopsPackages -WorkRepository "<path_to_work_repository> command on Window PowerShell console.
This display indicates which Packages have been added, updated, or deleted in the Work Repository:
- Commit the changes using the required Version Control System.