Buildversion and FilterHelper

This commit is contained in:
Andre Beging
2025-03-28 08:55:49 +01:00
parent d11a225ffa
commit ff5fbd50bf
11 changed files with 134 additions and 88 deletions

View File

@@ -4,8 +4,18 @@
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<PropertyGroup>
<BuildDate>$([System.DateTime]::Now.ToString("yyyyMMdd"))</BuildDate>
<PublishDir>..\Publish\Server</PublishDir>
</PropertyGroup>
<Target Name="GenerateBuildInfo" BeforeTargets="Build">
<WriteLinesToFile File="$(ProjectDir)wwwroot\buildinfo.txt" Lines="$(BuildDate)" Overwrite="true" />
</Target>
<ItemGroup>
<ProjectReference Include="..\FoodsharingSiegen.Contracts\FoodsharingSiegen.Contracts.csproj" />
<ProjectReference Include="..\FoodsharingSiegen.Shared\FoodsharingSiegen.Shared.csproj" />