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>
2026-05-22 14:29:22 +08:00
<RootNamespace > FileShare_API</RootNamespace>
2026-05-21 15:52:36 +08:00
</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 >
2026-05-22 14:29:22 +08:00
<ProjectReference Include= "..\FileShare-Services\FileShare-Services.csproj" />
<ProjectReference Include= "..\FileShare-Common\FileShare-Common.csproj" />
<ProjectReference Include= "..\FileShare-EFCore\FileShare-EFCore.csproj" />
2026-05-21 15:52:36 +08:00
</ItemGroup>
<ItemGroup >
<Folder Include= "Controllers\" />
2026-05-22 17:01:49 +08:00
<Content Include= "..\tools\ffmpeg\bin\ffmpeg.exe" Link= "tools\ffmpeg\bin\ffmpeg.exe" CopyToOutputDirectory= "PreserveNewest" CopyToPublishDirectory= "PreserveNewest" />
<Content Include= "..\tools\ffmpeg\bin\ffprobe.exe" Link= "tools\ffmpeg\bin\ffprobe.exe" CopyToOutputDirectory= "PreserveNewest" CopyToPublishDirectory= "PreserveNewest" />
2026-05-21 15:52:36 +08:00
</ItemGroup>
2026-05-22 14:29:22 +08:00
<Target Name= "RestoreFrontendPackages" BeforeTargets= "Build" Condition= "'$(SkipFrontendBuild)' != 'true' And Exists('..\FileShare-Web-VUE\package.json') And !Exists('..\FileShare-Web-VUE\node_modules')" >
<Message Importance= "high" Text= "Restoring FileShare-Web-VUE npm packages..." />
<Exec WorkingDirectory= "..\FileShare-Web-VUE" Command= "npm.cmd install" />
2026-05-21 16:45:56 +08:00
</Target>
2026-05-22 14:29:22 +08:00
<Target Name= "BuildFrontend" BeforeTargets= "Build" DependsOnTargets= "RestoreFrontendPackages" Condition= "'$(SkipFrontendBuild)' != 'true' And Exists('..\FileShare-Web-VUE\package.json')" >
<Message Importance= "high" Text= "Building FileShare-Web-VUE into FileShare-API/wwwroot..." />
<Exec WorkingDirectory= "..\FileShare-Web-VUE" Command= "npm.cmd run build-only" />
2026-05-21 16:45:56 +08:00
<RemoveDir Directories= "wwwroot" />
<MakeDir Directories= "wwwroot" />
<ItemGroup >
2026-05-22 14:29:22 +08:00
<FrontendDist Include= "..\FileShare-Web-VUE\dist\**\*.*" />
2026-05-21 16:45:56 +08:00
</ItemGroup>
2026-05-22 11:18:47 +08:00
<Copy SourceFiles= "@(FrontendDist)" DestinationFiles= "@(FrontendDist->'wwwroot\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles= "false" />
2026-05-21 16:45:56 +08:00
</Target>
2026-05-21 15:52:36 +08:00
</Project>