mirror of
https://github.com/bitwarden/server.git
synced 2025-06-17 00:03:17 -05:00
fix: new build context wont allow copying git context
This commit is contained in:
parent
3e48c6318d
commit
5d7025dd99
@ -52,22 +52,4 @@
|
|||||||
<AutoFixtureAutoNSubstituteVersion>4.18.1</AutoFixtureAutoNSubstituteVersion>
|
<AutoFixtureAutoNSubstituteVersion>4.18.1</AutoFixtureAutoNSubstituteVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--
|
</Project>
|
||||||
This section is for getting & setting the gitHash value, which can easily be accessed
|
|
||||||
via the Core.Utilities.AssemblyHelpers class.
|
|
||||||
-->
|
|
||||||
<Target Name="SetSourceRevisionId" BeforeTargets="CoreGenerateAssemblyInfo">
|
|
||||||
<Exec Command="git describe --long --always --dirty --exclude=* --abbrev=8" ConsoleToMSBuild="True" IgnoreExitCode="False">
|
|
||||||
<Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/>
|
|
||||||
</Exec>
|
|
||||||
</Target>
|
|
||||||
<Target Name="WriteRevision" AfterTargets="SetSourceRevisionId">
|
|
||||||
<ItemGroup>
|
|
||||||
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
|
||||||
<_Parameter1>GitHash</_Parameter1>
|
|
||||||
<_Parameter2>$(SourceRevisionId)</_Parameter2>
|
|
||||||
</AssemblyAttribute>
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user