This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Usage Details
dkowald edited this page Nov 18, 2019
·
1 revision
Details on usage
The Git command MUST be available on the path.
Each git package must be named (via Include attribute), the name describes the sub-folder used for checkout.
Each git package must have a Uri, describing the source repository.
There are 3 ways to use GitPackages
- Versioned - use for strict file selection
- Unversioned - use to stay at latest.
Attached - use for updatable.
Each has their own advantage and dis advantages.
Versioned GitPackages use a Tags to identify specific version(s).
<ItemGroup>
<GitPackage Include="Sample"
Version="2"
Uri="C:\tmp\Sample" />
</ItemGroup>
- Strict file selection.
- Updated on every build.
- Use cached clone.
- Repository must provide Tags for versions.
These describe only the source repository and target folder.
<ItemGroup>
<!--Delete SampleNoVersion.ver to refresh-->
<GitPackage Include="SampleNoVersion"
Uri="C:\tmp\Sample" />
</ItemGroup>
- Uses cached clone.
- Repository doesn't need Tags.
- Not updated with the build.
- Not strict on files.
To update, either delete the .ver file, or use msbuild GitPackRefresh to get latest.
Removed in favour of just using git sub-modules