2026-05-21 15:52:36 +08:00
<Project Sdk= "Microsoft.NET.Sdk.Web" >
<PropertyGroup >
<TargetFramework > net10.0</TargetFramework>
<Nullable > enable</Nullable>
<ImplicitUsings > enable</ImplicitUsings>
<RootNamespace > Avalonia_API</RootNamespace>
</PropertyGroup>
<ItemGroup >
<PackageReference Include= "Microsoft.AspNetCore.OpenApi" Version= "10.0.5" />
<PackageReference Include= "Microsoft.AspNetCore.Authentication.JwtBearer" Version= "10.0.5" />
<PackageReference Include= "Microsoft.EntityFrameworkCore.Design" Version= "10.0.7" >
<PrivateAssets > all</PrivateAssets>
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include= "Serilog.AspNetCore" Version= "9.0.0" />
<PackageReference Include= "Swashbuckle.AspNetCore.SwaggerUI" Version= "8.1.4" />
</ItemGroup>
<ItemGroup >
<ProjectReference Include= "..\Avalonia-Services\Avalonia-Services.csproj" />
<ProjectReference Include= "..\Avalonia-Common\Avalonia-Common.csproj" />
<ProjectReference Include= "..\Avalonia-EFCore\Avalonia-EFCore.csproj" />
</ItemGroup>
<ItemGroup >
<Folder Include= "Controllers\" />
</ItemGroup>
2026-05-21 16:45:56 +08:00
<Target Name= "RestoreFrontendPackages" BeforeTargets= "Build" Condition= "'$(SkipFrontendBuild)' != 'true' And Exists('..\Avalonia-Web-VUE\package.json') And !Exists('..\Avalonia-Web-VUE\node_modules')" >
<Message Importance= "high" Text= "Restoring Avalonia-Web-VUE npm packages..." />
<Exec WorkingDirectory= "..\Avalonia-Web-VUE" Command= "npm.cmd install" />
</Target>
<Target Name= "BuildFrontend" BeforeTargets= "Build" DependsOnTargets= "RestoreFrontendPackages" Condition= "'$(SkipFrontendBuild)' != 'true' And Exists('..\Avalonia-Web-VUE\package.json')" >
<Message Importance= "high" Text= "Building Avalonia-Web-VUE into Avalonia-API/wwwroot..." />
<Exec WorkingDirectory= "..\Avalonia-Web-VUE" Command= "npm.cmd run build-only" />
<RemoveDir Directories= "wwwroot" />
<MakeDir Directories= "wwwroot" />
<ItemGroup >
<FrontendDist Include= "..\Avalonia-Web-VUE\dist\**\*.*" />
</ItemGroup>
<Copy
SourceFiles="@(FrontendDist)"
DestinationFiles="@(FrontendDist->'wwwroot\%(RecursiveDir)%(Filename)%(Extension)')"
SkipUnchangedFiles="false" />
</Target>
2026-05-21 15:52:36 +08:00
</Project>