Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed May 29, 2024
1 parent d008403 commit 5929360
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<PropertyGroup>
<ReleaseDateAttribute>true></ReleaseDateAttribute>
<ReleaseDateAttribute>true</ReleaseDateAttribute>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 0 additions & 4 deletions IntelliTect.Multitool/Build/IntelliTect.Multitool.targets
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
'$(CODEBUILD_CI)' == 'true'">true</CI>
</PropertyGroup>

<PropertyGroup>
<ReleaseDateAttribute>true</ReleaseDateAttribute>
</PropertyGroup>

<Target Name="WriteLaunchers" AfterTargets="CopyFilesToOutputDirectory">
<PropertyGroup>
<TempStagingPath Condition="'$(TempStagingPath)' == ''">$([System.IO.Path]::GetTempPath())</TempStagingPath>
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

## ReleaseDateAttribute - Gets an UTC DateTime of compile time. Allows us to determine the build date/time

### How to use

- To help [hot reload in visual studio work properly](https://github.com/IntelliTect/Multitool/issues/125), the release date attribute will be automatically be generated during compilation on a CI runner, but it won’t generate locally by default. If you want it to generate locally, set the `ReleaseDateAttribute` to true within a property group in your project file. (`<ReleaseDateAttribute>true</ReleaseDateAttribute>`)

### Blog Post/Additional Information: [How To Display the Build Date of a .NET Application](https://intellitect.com/blog/build-date-net-application/)

### Samples:
Expand Down

0 comments on commit 5929360

Please sign in to comment.