Last active
February 15, 2021 12:44
-
-
Save cjaSource/aeaec24f4a7792eb7f3b294de2f68af8 to your computer and use it in GitHub Desktop.
Directory.Build.targets NET Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" /> | |
<Target Name="beforebuild" BeforeTargets="build" Condition="'$(BuildingSS_fcbat)' != 'true'"> | |
<PropertyGroup> | |
<Time>$([System.DateTime]::Now.ToString())</Time> | |
</PropertyGroup> | |
</Target> | |
<Target Name="afterbuild" AfterTargets="build" Condition="'$(BuildingSS_fcbat)' != 'true'"> | |
<PropertyGroup> | |
<BuildTime>$([System.DateTime]::Now.Subtract($(Time)).ToString())</BuildTime> | |
</PropertyGroup> | |
<Exec Command="$(SolutionDir)BuildScripts\tools\Cake\Cake.exe $(SolutionDir)BuildScripts\vstelemetry.cake --buildtime='$(BuildTime)' --project='$(ProjectName)'" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment