58 lines
2.4 KiB
XML
58 lines
2.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<PublishAot>true</PublishAot>
|
|
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
|
|
<CompilerGeneratedFilesOutputPath>obj/Generated</CompilerGeneratedFilesOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<EnableRequestDelegateGenerator>true</EnableRequestDelegateGenerator>
|
|
<PublishAot>true</PublishAot>
|
|
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Immediate.Apis.Generators</InterceptorsPreviewNamespaces>
|
|
<!--
|
|
IL2026 warnings come from STJ-generated serializers for Task → AggregateException → Exception.TargetSite.
|
|
We register Task/ValueTask in AppJsonSerializerContext only so RequestDelegateFactory.GetTypeInfo()
|
|
doesn't throw at startup — we never actually serialize a Task. TargetSite is unsupported in
|
|
NativeAOT anyway, so suppressing this warning here is safe.
|
|
-->
|
|
<NoWarn>$(NoWarn);IL2026</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<RdXmlFile Include="rd.xml" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<CompilerVisibleProperty Include="RootNamespace" />
|
|
<CompilerVisibleProperty Include="MSBuildProjectDirectory" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Update="wwwroot\**" CopyToPublishDirectory="Always" />
|
|
<Content Remove="wwwroot\css\output.css" />
|
|
<AdditionalFiles Include="**/*.htmx" />
|
|
<None Remove="**/*.htmx" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Immediate.Apis" Version="4.2.0" />
|
|
<PackageReference Include="Immediate.Handlers" Version="3.5.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.7" />
|
|
<PackageReference Include="MongoDB.Driver" Version="3.4.0" />
|
|
<ProjectReference Include="..\Htmx.SourceGenerator\Htmx.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="Tailwind" BeforeTargets="Build" Inputs="./wwwroot/css/input.css;./**/*.htmx;./**/*.cshtml" Outputs="./wwwroot/css/output.css">
|
|
<PropertyGroup>
|
|
<TailwindMinify Condition="'$(Configuration)' == 'Release'">--minify</TailwindMinify>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command="npx @tailwindcss/cli -i ./wwwroot/css/input.css -o ./wwwroot/css/output.css $(TailwindMinify)" />
|
|
</Target>
|
|
|
|
</Project>
|