mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-22 19:43:07 +08:00
90 lines
2.9 KiB
XML
90 lines
2.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<Import Project="$(SolutionDir)Version.props" />
|
|
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net8.0;net9.0;</TargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="Admin.targets" Condition=" '$(Configuration)' != 'Debug' " />
|
|
<PropertyGroup>
|
|
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
|
|
<SatelliteResourceLanguages>zh-Hans;en-US</SatelliteResourceLanguages>
|
|
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
|
|
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
|
|
|
|
<!--动态适用GC-->
|
|
<GarbageCollectionAdaptationMode>1</GarbageCollectionAdaptationMode>
|
|
<!--使用自托管线程池-->
|
|
<!--<UseWindowsThreadPool>false</UseWindowsThreadPool> -->
|
|
|
|
<!--使用工作站GC-->
|
|
<!--<ServerGarbageCollection>true</ServerGarbageCollection>-->
|
|
|
|
<!--<PlatformTarget>x86</PlatformTarget>-->
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
<ProjectReference Include="..\ThingsGateway.Admin.Razor\ThingsGateway.Admin.Razor.csproj" />
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
<Content Remove="Locales\*.json" />
|
|
<EmbeddedResource Include="Locales\*.json">
|
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Update="wwwroot\**">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="$(NET9Version)" />
|
|
</ItemGroup>
|
|
<!--安装服务守护-->
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
|
|
|
|
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="8.0.1" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
|
|
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="$(NET9Version)" />
|
|
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="$(NET9Version)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<None Update="Dockerfile">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="Dockerfile_arm64">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="pm2-windows.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="pm2-linux.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="ThingsGateway.pfx">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="thingsgateway.service">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="WindowsServiceCreate.bat">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="WindowsServiceDelete.bat">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
</Project>
|