<Project Sdk="Microsoft.NET.Sdk.Web">

    <PropertyGroup>
        <TargetFramework>net7.0</TargetFramework>
        <Nullable>enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
        <NoWarn>CS8618;CA2016</NoWarn>
        <PackageLicenseExpression>MIT</PackageLicenseExpression>
        <NuGetAuditMode>direct</NuGetAuditMode>
        <LangVersion>latest</LangVersion>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
        <DebugType>none</DebugType>
        <!--<InvariantGlobalization>true</InvariantGlobalization> litedb needs en-us culture-->
        <PublishSingleFile>true</PublishSingleFile>
        <RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
        <SelfContained>true</SelfContained>
        <PublishTrimmed>true</PublishTrimmed>
        <DebuggerSupport>false</DebuggerSupport>
        <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization>
        <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
        <EventSourceSupport>false</EventSourceSupport>
        <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
        <MetadataUpdaterSupport>false</MetadataUpdaterSupport>
        <UseNativeHttpHandler>true</UseNativeHttpHandler>
        <UseSystemResourceKeys>true</UseSystemResourceKeys>
    </PropertyGroup>

    <ItemGroup>
      <Content Remove="nlog.config" />
    </ItemGroup>

    <ItemGroup>
        <PackageReference Include="FastEndpoints.Generator" Version="5.35.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
        <PackageReference Include="NLog.Web.AspNetCore" Version="6.0.4" />
        <PackageReference Include="SerialPortLib" Version="1.1.2" />
        <PackageReference Include="FastEndpoints" Version="5.35.0" />
        <PackageReference Include="LiteDB" Version="5.0.21" />
        <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.20" />
    </ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\Client\InverterMon.Client.csproj" />
        <ProjectReference Include="..\Shared\InverterMon.Shared.csproj" />
    </ItemGroup>

    <ItemGroup>
        <None Include="../changelog.md" Link="changelog.md" />
        <None Include="nlog.config">
          <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </None>
    </ItemGroup>

    <ProjectExtensions><VisualStudio><UserProperties appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>

</Project>