Unify Aetheria .NET dependency roots
This commit is contained in:
parent
1d05d910bb
commit
0d75849f48
8 changed files with 50 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
6
Aetheria.State/Aetheria.State.Dependencies.props
Normal file
6
Aetheria.State/Aetheria.State.Dependencies.props
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<CultLibRoot Condition="'$(CultLibRoot)' == ''">$(MSBuildThisFileDirectory)..\..\CultLib</CultLibRoot>
|
||||
<EveUnityRoot Condition="'$(EveUnityRoot)' == ''">$(MSBuildThisFileDirectory)..\..\EveUnity</EveUnityRoot>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
20
Aetheria.State/Aetheria.State.Dependencies.targets
Normal file
20
Aetheria.State/Aetheria.State.Dependencies.targets
Normal 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>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue