Unify Aetheria .NET dependency roots

This commit is contained in:
Meta Vens 2026-07-13 19:16:07 +01:00
commit 0d75849f48
8 changed files with 50 additions and 2 deletions

View file

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
@ -11,4 +13,6 @@
<ProjectReference Include="..\Aetheria.State.Daemon\Aetheria.State.Daemon.csproj" />
<ProjectReference Include="..\..\Ymir\src\Ymir.Core\Ymir.Core.csproj" />
</ItemGroup>
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.targets" />
</Project>

View file

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
@ -11,4 +13,6 @@
<ProjectReference Include="..\Aetheria.State\Aetheria.State.csproj" />
<ProjectReference Include="..\..\Ymir\src\Ymir.Core\Ymir.Core.csproj" />
</ItemGroup>
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.targets" />
</Project>

View file

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
@ -11,4 +13,6 @@
<ProjectReference Include="..\Aetheria.State\Aetheria.State.csproj" />
<ProjectReference Include="..\..\EvePlugins\plugins\eve-plugin-fields\GameCult.Eve.PluginFields.csproj" />
</ItemGroup>
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.targets" />
</Project>

View file

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
@ -10,4 +12,6 @@
<ItemGroup>
<ProjectReference Include="..\Aetheria.State\Aetheria.State.csproj" />
</ItemGroup>
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.targets" />
</Project>

View file

@ -1,4 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
@ -11,4 +13,6 @@
<ProjectReference Include="..\Aetheria.State\Aetheria.State.csproj" />
<ProjectReference Include="..\Aetheria.State.Unity\Aetheria.State.Unity.csproj" />
</ItemGroup>
<Import Project="..\Aetheria.State\Aetheria.State.Dependencies.targets" />
</Project>

View file

@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<CultLibRoot Condition="'$(CultLibRoot)' == ''">$(MSBuildThisFileDirectory)..\..\CultLib</CultLibRoot>
<EveUnityRoot Condition="'$(EveUnityRoot)' == ''">$(MSBuildThisFileDirectory)..\..\EveUnity</EveUnityRoot>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,20 @@
<Project>
<Target Name="VerifyGameCultMeshReference" AfterTargets="ResolveAssemblyReferences"
Condition="'$(DesignTimeBuild)' != 'true'">
<ItemGroup>
<_GameCultMeshReference Include="@(ReferencePath)"
Condition="'%(ReferencePath.Filename)%(ReferencePath.Extension)' == 'GameCult.Mesh.dll'" />
</ItemGroup>
<Error Condition="@(_GameCultMeshReference->Count()) != 1"
Text="Expected exactly one resolved GameCult.Mesh reference, found @(_GameCultMeshReference->Count()): @(_GameCultMeshReference, ', ')" />
<Error Condition="$([System.String]::Copy('%(_GameCultMeshReference.FullPath)').StartsWith($([System.IO.Path]::GetFullPath('$(CultLibRoot)\')), System.StringComparison.OrdinalIgnoreCase)) != 'true'"
Text="GameCult.Mesh resolved outside CultLibRoot '$(CultLibRoot)': %(_GameCultMeshReference.FullPath)" />
<GetFileHash Files="@(_GameCultMeshReference)" Algorithm="SHA256">
<Output TaskParameter="Items" ItemName="_GameCultMeshReferenceHash" />
</GetFileHash>
<Message Importance="High"
Text="GameCult.Mesh reference: %(_GameCultMeshReferenceHash.FullPath) SHA256=%(_GameCultMeshReferenceHash.FileHash)" />
</Target>
</Project>

View file

@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="Aetheria.State.Dependencies.props" />
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Description>Typed CultCache and CultMesh state spine for Aetheria.</Description>
<EveUnityRoot Condition="'$(EveUnityRoot)' == ''">$(MSBuildThisFileDirectory)..\..\EveUnity</EveUnityRoot>
<CultLibRoot Condition="'$(CultLibRoot)' == ''">$(MSBuildThisFileDirectory)..\..\CultLib</CultLibRoot>
</PropertyGroup>
<ItemGroup>
@ -19,4 +19,6 @@
<ProjectReference Include="$(EveUnityRoot)\packages\org.gamecult.eve.surface\GameCult.Eve.Surface.csproj" />
<ProjectReference Include="..\..\EvePlugins\plugins\eve-plugin-fields\GameCult.Eve.PluginFields.csproj" />
</ItemGroup>
<Import Project="Aetheria.State.Dependencies.targets" />
</Project>