Skip to content

Commit fdf71f0

Browse files
committed
swallow pre-build event errors
1 parent 3c044bc commit fdf71f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UAssetGUI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</PackageReference>
129129
</ItemGroup>
130130
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
131-
<PropertyGroup>
132-
<PreBuildEvent>git rev-parse --short HEAD &gt; "$(ProjectDir)\git_commit.txt"</PreBuildEvent>
133-
</PropertyGroup>
131+
<Target Name="BeforeBuild">
132+
<Exec ContinueOnError="true" Command="git rev-parse --short HEAD &gt; &quot;$(ProjectDir)\git_commit.txt&quot;" />
133+
</Target>
134134
</Project>

0 commit comments

Comments
 (0)