mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-21 01:59:49 +00:00
721ee8e494
* Move shared code to Shared project * Move from Realm to Squealify * Rename Daybreak.Shared namespaces * Setup API project to expose a test API
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0-windows</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<OutputType>Library</OutputType>
|
|
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
|
|
<StripSymbols>true</StripSymbols>
|
|
<InteropExports>true</InteropExports>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
|
<PublishAot>true</PublishAot>
|
|
<SelfContained>true</SelfContained>
|
|
|
|
|
|
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
|
|
<UseAppHost>false</UseAppHost>
|
|
<EnableIISSupport>false</EnableIISSupport>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Net.Sdk.Web.Extensions.SourceGenerators" Version="0.9.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Daybreak.Shared\Daybreak.Shared.csproj" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<DaybreakHostOutputDir>$(MSBuildProjectDirectory)\..\Daybreak\bin\x86\$(Configuration)\$(TargetFramework)\</DaybreakHostOutputDir>
|
|
<ShouldPublishAot>true</ShouldPublishAot>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="PublishIntoDaybreak" AfterTargets="PostBuild" Condition="'$(ShouldPublishAot)'=='true'">
|
|
<Message Text="📦 dotnet-publish Daybreak.API → $(DaybreakHostOutputDir)" Importance="High" />
|
|
|
|
<Exec Command="dotnet publish "$(MSBuildProjectFullPath)" -c $(Configuration) -r win-x86 --self-contained true -o "$(DaybreakHostOutputDir)"" WorkingDirectory="$(ProjectDir)" />
|
|
</Target>
|
|
</Project> |