Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

How it works

dkowald edited this page Nov 18, 2019 · 1 revision

An overview of the code behind GitPackages.

Overview

A custom build task is used to manage the GitPackages

The custom task loads data from the local project gist folder (GitPack-ProjectDir).

The associated GitPackages.targets project uses this data to coordinate git calls and folder management.

Each git URL is mapped to a unique local folder under $HOME/.gitpack (GitPack-Cache). This is used as the single local clone for the URL.

A git worktree is used to get the files into the project.

Special targets

  1. gpAutoRestore - Before restore, run GitPackRestore
  2. gpAutoRestoreInVStudio - If in Visual studio, run before build. Are used to hook into the build process.