mirror of
https://github.com/skoelle/focusapp.git
synced 2026-09-17 20:10:25 +00:00
39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.18" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.18">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.18" />
|
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.3" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Frontend Build Output inkludieren -->
|
|
<Content Include="client\build\**" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<!-- Automatisches Frontend-Build bei Publish (nur Release, skip mit -p:SkipFrontendBuild=true) -->
|
|
<Target Name="BuildFrontend" BeforeTargets="Publish" Condition="'$(Configuration)' == 'Release' AND '$(SkipFrontendBuild)' != 'true'">
|
|
<Message Text="🔨 Building React Frontend..." Importance="high" />
|
|
|
|
<!-- NPM Install falls node_modules nicht existiert -->
|
|
<Exec Command="cd client && npm install" Condition="!Exists('client\node_modules')" WorkingDirectory="$(ProjectDir)" />
|
|
|
|
<!-- NPM Build -->
|
|
<Exec Command="cd client && npm run build" WorkingDirectory="$(ProjectDir)" />
|
|
|
|
<Message Text="✅ Frontend Build abgeschlossen!" Importance="high" />
|
|
</Target>
|
|
|
|
</Project>
|