Skip to content

Commit

Permalink
Directory.Build.props: Moved IncludeSourceRevisionInInformationalVers…
Browse files Browse the repository at this point in the history
…ion from Directory.Build.targets so it is with other version properties.
  • Loading branch information
NightOwl888 committed Apr 30, 2024
1 parent 6be0440 commit 36db76a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
<!-- .NET enforces AssemblyVersion as the "major" version (when strong-named),
so AssemblyVersion should only be changed for each major version release. -->
<AssemblyVersion>4.0.0</AssemblyVersion>

<!-- .NET 8 SDK has a breaking change where they automatically add the commit hash to InformationalVersion unless it is explicitly disabled. -->
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<PropertyGroup Label="Assembly Signing">
Expand Down Expand Up @@ -88,4 +91,4 @@
in Version.props, if it exists and the PrepareForBuild argument
passed into build.ps1 is 'false'. -->
<Import Project="version.props" Condition="Exists('version.props')" />
</Project>
</Project>
4 changes: 0 additions & 4 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@
<DebugType Condition=" '$(PortableDebugTypeOnly)' == 'true' ">portable</DebugType>
</PropertyGroup>

<PropertyGroup Label="Versioning">
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>

<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile" Label="Adds InternalsVisibleTo Attribute and PublicKey (if supplied)">
<ItemGroup Condition="'@(InternalsVisibleTo->Count())' &gt; 0 ">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
Expand Down

0 comments on commit 36db76a

Please sign in to comment.