Files
ResoniteImGuiLib/Plugin/ResoniteImGuiLib.csproj
2026-05-18 02:05:15 -05:00

71 lines
3.1 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>2.1.0</Version>
<Authors>art0007i</Authors>
<TargetFramework>net10.0</TargetFramework>
<RepositoryUrl>https://github.com/art0007i/ResoniteImGuiLib</RepositoryUrl>
<PackageId>art0007i.ResoniteImGuiLib</PackageId>
<Product>ResoniteImGuiLib</Product>
<RootNamespace>ResoniteImGuiLib</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Deterministic>true</Deterministic>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyToPlugins>false</CopyToPlugins>
<ThunderstorePackable>true</ThunderstorePackable>
<GamePath Condition="'$(ResonitePath)' != ''">$(ResonitePath)/</GamePath>
<GamePath Condition="Exists('$(MSBuildProgramFiles32)\Steam\steamapps\common\Resonite\')">$(MSBuildProgramFiles32)\Steam\steamapps\common\Resonite\</GamePath>
<GamePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite/</GamePath>
<PluginTargetDir>$(GamePath)BepInEx\plugins\$(AssemblyName)</PluginTargetDir>
<RestoreAdditionalProjectSources>
https://nuget-modding.resonite.net/v3/index.json;
</RestoreAdditionalProjectSources>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<!-- Modding dependencies -->
<ItemGroup>
<PackageReference Include="BepInEx.ResonitePluginInfoProps" Version="3.*" />
<PackageReference Include="ResoniteModding.BepInExResoniteShim" Version="0.8.*" />
<PackageReference Include="ResoniteModding.BepisResoniteWrapper" Version="1.0.*" />
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
<PackageReference Include="SDL3-CS" Version="3.2.18" />
<PackageReference Include="SDL3-CS.Native" Version="3.2.18" />
</ItemGroup>
<!-- NuGet fallback stripped game references -->
<ItemGroup Condition="!Exists('$(GamePath)')">
<PackageReference Include="Resonite.GameLibs" Version="2025.*" PrivateAssets="all" />
</ItemGroup>
<!-- Local game references -->
<ItemGroup Condition="Exists('$(GamePath)')">
<Reference Include="FrooxEngine">
<HintPath>$(GamePath)FrooxEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Elements.Core">
<HintPath>$(GamePath)Elements.Core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Renderite.Shared">
<HintPath>$(GamePath)Renderite.Shared.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<!-- Post-build copy to game plugins folder -->
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<PluginFiles Include="$(TargetPath)" />
<PluginFiles Include="$(TargetDir)$(TargetName).pdb" Condition="Exists('$(TargetDir)$(TargetName).pdb')" />
</ItemGroup>
<Copy SourceFiles="@(PluginFiles)" DestinationFolder="$(PluginTargetDir)" Condition="'$(CopyToPlugins)' == 'true'" />
<Message Text="Copied plugin files to $(PluginTargetDir)" Importance="high" Condition="'$(CopyToPlugins)' == 'true'" />
</Target>
</Project>