Loopback MCP host with observe/control/develop gates and a hot-reload tools DLL. Default token is local-dev only. Leave the module off unless you are driving S3 from an agent.
60 lines
2.5 KiB
XML
60 lines
2.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>annotations</Nullable>
|
|
<!-- Unique assembly identity every build so Unity Mono can Assembly.Load
|
|
a new copy without colliding with the previous one. File is copied
|
|
to the stable name S3.Mcp.Tools.dll; the host loads bytes. -->
|
|
<ToolsStamp>$([System.DateTime]::UtcNow.ToString('yyyyMMddHHmmssfff'))</ToolsStamp>
|
|
<AssemblyName>S3.Mcp.Tools_$(ToolsStamp)</AssemblyName>
|
|
<RootNamespace>S3.Mcp.Tools</RootNamespace>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
<S3Dll>$(MSBuildThisFileDirectory)..\src\bin\$(Configuration)\S3.dll</S3Dll>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="S3">
|
|
<HintPath>$(S3Dll)</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="Assembly-CSharp">
|
|
<HintPath>$(GameManaged)\Assembly-CSharp.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="Newtonsoft.Json">
|
|
<HintPath>$(GameManaged)\Newtonsoft.Json.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine">
|
|
<HintPath>$(GameManaged)\UnityEngine.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>$(GameManaged)\UnityEngine.CoreModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.PhysicsModule">
|
|
<HintPath>$(GameManaged)\UnityEngine.PhysicsModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.InputLegacyModule">
|
|
<HintPath>$(GameManaged)\UnityEngine.InputLegacyModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="0Harmony">
|
|
<HintPath>$(UmmDir)\0Harmony.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<Target Name="CopyStablePlugin" AfterTargets="Build">
|
|
<MakeDir Directories="$(GameDir)\Mods\S3\plugins" />
|
|
<Copy SourceFiles="$(TargetPath)" DestinationFiles="$(GameDir)\Mods\S3\plugins\S3.Mcp.Tools.dll" />
|
|
<Message Importance="high" Text="Copied S3.Mcp.Tools.dll (assembly $(AssemblyName))" />
|
|
</Target>
|
|
|
|
</Project>
|