Skip to content

Commit c92f82b

Browse files
fix: Hot reload breaking
Now it only auto generates the attribute if in CI and deterministic is not set to true, unless explicitly set via `ReleaseDateAttribute`
1 parent dd434a8 commit c92f82b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

IntelliTect.Multitool/Build/IntelliTect.Multitool.targets

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
<Project>
2-
<ItemGroup>
3-
<AssemblyAttribute Condition="'$(CI)' != '' OR '$(ReleaseDateAttribute)' == 'true'" Include="IntelliTect.Multitool.ReleaseDate">
4-
<_Parameter1>$([System.DateTime]::UtcNow.ToString("O"))</_Parameter1>
5-
</AssemblyAttribute>
6-
</ItemGroup>
7-
1+
<Project>
82
<PropertyGroup Label="CI" Condition="'$(CI)' == ''">
93
<CI>false</CI>
104
<!-- GH, CircleCI, GitLab and BitBucket already use CI -->
@@ -18,6 +12,12 @@
1812
'$(CODEBUILD_CI)' == 'true'">true</CI>
1913
</PropertyGroup>
2014

15+
<ItemGroup Condition="('$(CI)' == 'true' AND '$(Deterministic)' != 'true' AND '$(ReleaseDateAttribute)' != 'true') OR '$(ReleaseDateAttribute)' == 'true'">
16+
<AssemblyAttribute Include="IntelliTect.Multitool.ReleaseDate">
17+
<_Parameter1>$([System.DateTime]::UtcNow.ToString("O"))</_Parameter1>
18+
</AssemblyAttribute>
19+
</ItemGroup>
20+
2121
<Target Name="WriteLaunchers" AfterTargets="CopyFilesToOutputDirectory">
2222
<PropertyGroup>
2323
<TempStagingPath Condition="'$(TempStagingPath)' == ''">$([System.IO.Path]::GetTempPath())</TempStagingPath>

0 commit comments

Comments
 (0)