Skip to content

Commit

Permalink
Add region markers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zastai committed Dec 8, 2023
1 parent 5025c3d commit fc11d65
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions MetaBrainz.Build.Sdk/Versioning.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!-- Deal With Versions (Assembly/Package). -->
<Project>

<!--#region Version Control Information-->

<Target Name="_GetVCSInfo" DependsOnTargets="InitializeSourceControlInformation">
<PropertyGroup>
<_VCSBranchName />
Expand Down Expand Up @@ -52,6 +54,10 @@
<Message Importance="$(DebugMessageImportance)" Condition=" '$(_VCSPackageInfo)' != '' " Text="- Package Info : $(_VCSPackageInfo)" />
</Target>

<!--#endregion-->

<!--#region Build Information-->

<Target Name="_GetBuildInfo">
<PropertyGroup>
<_BuildInfo />
Expand Down Expand Up @@ -82,6 +88,10 @@
<Message Importance="$(DebugMessageImportance)" Condition=" '$(_BuildPackageInfo)' != '' " Text="- Package Info : $(_BuildPackageInfo)" />
</Target>

<!--#endregion-->

<!--#region Version Number Processing-->

<Target Name="_ParseVersionSpecification">
<!-- First Step: Split using a regex. -->
<PropertyGroup>
Expand All @@ -105,6 +115,10 @@
<Message Importance="$(DebugMessageImportance)" Text="Canonical Version: $(Version)"/>
</Target>

<!--#endregion-->

<!--#region AssemblyInfo Properties-->

<Target Name="_SetAssemblyInfoPropertiesFromVersion" BeforeTargets="GenerateAdditionalSources" DependsOnTargets="_GetVCSInfo; _GetBuildInfo; _ParseVersionSpecification">
<PropertyGroup>
<AssemblyVersion>$(_Version_API)</AssemblyVersion>
Expand All @@ -126,6 +140,10 @@
<Message Importance="$(DebugMessageImportance)" Text="- InformationalVersion : $(InformationalVersion)"/>
</Target>

<!--#endregion-->

<!--#region PackageVersion Construction-->

<PropertyGroup>
<!-- This ensures the PackageVersion computation is run both when building a project's package and when resolving a project reference to a package reference. -->
<GetPackageVersionDependsOn>$(GetPackageVersionDependsOn); _SetPackagePropertiesFromVersion</GetPackageVersionDependsOn>
Expand All @@ -147,4 +165,6 @@
<Message Importance="$(DebugMessageImportance)" Text="- PackageVersion : $(PackageVersion)"/>
</Target>

<!--#endregion-->

</Project>

0 comments on commit fc11d65

Please sign in to comment.