From 0753e6d2136231d0c0b456891ad874d352be07f3 Mon Sep 17 00:00:00 2001 From: Leo Li Date: Sun, 23 Jul 2017 20:42:42 -0700 Subject: [PATCH] Add more HintPaths for OTAPI This will help msbuild to find missing libraries when create release with `/p:Configuration=Release`. With this patch, the searching order will be: - If OTAPI with same configuration found, use that. - Else if OTAPI with Release configuration found, use that. - Else use OTAPI with Debug configuration. --- TShockAPI/TShockAPI.csproj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj index 9bf2ebd9..08e9323d 100644 --- a/TShockAPI/TShockAPI.csproj +++ b/TShockAPI/TShockAPI.csproj @@ -74,7 +74,9 @@ False - ..\TerrariaServerAPI\TerrariaServerAPI\bin\Debug\OTAPI.dll + ..\TerrariaServerAPI\TerrariaServerAPI\bin\Debug\OTAPI.dll + ..\TerrariaServerAPI\TerrariaServerAPI\bin\Release\OTAPI.dll + ..\TerrariaServerAPI\TerrariaServerAPI\bin\$(Configuration)\OTAPI.dll @@ -214,4 +216,4 @@ --> - \ No newline at end of file +