Skip to content

Commit

Permalink
Build props update - made local package source stuff slightly less sp…
Browse files Browse the repository at this point in the history
…ecific to my account on my laptop
  • Loading branch information
sdcondon committed Feb 18, 2024
1 parent d2b0549 commit 65592dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
<!-- NB #1: timestamp below doesn't include seconds because depending on such a package gets VS into an infinite restore loop -->
<!-- NB #2: leading zeroes are invalid in numeric sections - hence the 'T' instead of a dot (I work late sometimes). Will go wrong in 2100, but who cares -->
<Version>0.0.0-local.$([System.DateTime]::Now.ToString(yyMMddTHHmm))</Version>
<!-- Might make this cleverer if anyone else starts contributing to this (look for local package sources with Powershell, maybe?) -->
<LocalPackageSource>$(UserProfile)\Coding\Packages</LocalPackageSource>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<!-- Will make this cleverer if anyone else starts contributing to this (look for local package sources with Powershell, maybe) -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' != 'true' And Exists('C:\Users\simon\Code\Packages')">
<PackageOutputPath>C:\Users\simon\Code\Packages</PackageOutputPath>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' != 'true' And Exists('$(LocalPackageSource)')">
<PackageOutputPath>$(LocalPackageSource)</PackageOutputPath>
</PropertyGroup>
</Project>

0 comments on commit 65592dd

Please sign in to comment.