-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
24 lines (24 loc) · 1.06 KB
/
Copy pathDirectory.Build.props
File metadata and controls
24 lines (24 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Project>
<!-- Metadata -->
<PropertyGroup>
<TargetFrameworks>net10.0</TargetFrameworks>
<Author>Helco</Author>
<VersionPrefix>1.0.0</VersionPrefix>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Helco/zzio</RepositoryUrl>
<GitVersion>false</GitVersion>
<RestoreSources>$(RestoreSources);../nuget-feed;https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>
<Target Name="GitVersion" />
<ItemGroup>
<PackageReference Include="GitInfo" PrivateAssets="all" />
</ItemGroup>
<Target Name="PopulateRepositoryInfo" DependsOnTargets="GitVersion" BeforeTargets="GetAssemblyVersion;GenerateNuspec;GetPackageContents">
<PropertyGroup>
<RepositoryBranch>$(GitBranch)</RepositoryBranch>
<RepositoryCommit>$(GitCommit)</RepositoryCommit>
<VersionSuffix Condition="'$(VersionSuffix)' == ''">$(GitCommit)</VersionSuffix>
<VersionSuffix Condition="'$(VersionSuffix)' != ''">$(GitCommit)-$(VersionSuffix)</VersionSuffix>
</PropertyGroup>
</Target>
</Project>