44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<OutputPath>$(StoreHostOutputPath)</OutputPath>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<SatelliteResourceLanguages>zh-Hans;zh-Hant;zh;en</SatelliteResourceLanguages>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="Logs\**" />
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.10" />
|
|
<PackageReference Include="Scalar.AspNetCore" Version="2.16.18" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Modules\Store.Users\Store.Users.csproj" />
|
|
<ProjectReference Include="..\Store.Framework\Store.Framework.csproj" />
|
|
<!-- 生成插件供宿主动态加载,插件程序集和配置不合并到宿主根目录。 -->
|
|
<ProjectReference Include="..\Plugins\*\*.csproj" ReferenceOutputAssembly="false" Private="false" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="IncludePluginsInPublish" AfterTargets="ComputeFilesToPublish">
|
|
<ItemGroup>
|
|
<!-- 插件生成后才枚举部署文件,保留各插件的配置和运行时依赖目录。 -->
|
|
<_PluginPublishFile Include="$(StoreHostOutputPath)Plugins\**\*" />
|
|
<ResolvedFileToPublish Include="@(_PluginPublishFile)">
|
|
<RelativePath>Plugins\%(_PluginPublishFile.RecursiveDir)%(_PluginPublishFile.Filename)%(_PluginPublishFile.Extension)</RelativePath>
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
</ResolvedFileToPublish>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|