Skip to content

Commit dacd825

Browse files
committed
**finally** updated TestFlight projects to be cross platform
1 parent 7cff7aa commit dacd825

File tree

10 files changed

+93
-53
lines changed

10 files changed

+93
-53
lines changed

TestFlight.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@
5151
<Reference Include="System.Data" />
5252
<Reference Include="System.Xml" />
5353
<Reference Include="Assembly-CSharp">
54-
<HintPath>..\..\Managed\Assembly-CSharp.dll</HintPath>
54+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp.dll</HintPath>
5555
</Reference>
5656
<Reference Include="Assembly-CSharp-firstpass">
57-
<HintPath>..\..\Managed\Assembly-CSharp-firstpass.dll</HintPath>
57+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp-firstpass.dll</HintPath>
5858
</Reference>
5959
<Reference Include="UnityEngine">
60-
<HintPath>..\..\Managed\UnityEngine.dll</HintPath>
60+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.dll</HintPath>
6161
</Reference>
6262
<Reference Include="KSPUtil">
63-
<HintPath>..\..\Managed\KSPUtil.dll</HintPath>
63+
<HintPath>$(KSP_DLL_PATH)\KSPUtil.dll</HintPath>
6464
</Reference>
6565
<Reference Include="UnityEngine.UI">
66-
<HintPath>..\..\Managed\UnityEngine.UI.dll</HintPath>
66+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.UI.dll</HintPath>
6767
</Reference>
6868
</ItemGroup>
6969
<ItemGroup>
@@ -177,10 +177,6 @@
177177
</ItemGroup>
178178
<ItemGroup />
179179
<PropertyGroup>
180-
<PostBuildEvent>"E:\Games\Steam\SteamApps\common\Kerbal Space Program\pdb2mdb\pdb2mdb.exe" "$(TargetPath)"
181-
xcopy /Y "$(TargetPath)" "E:\Games\KSP11_GameData\TestFlight\Plugins"
182-
xcopy /Y "$(TargetDir)$(TargetName).pdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
183-
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
184-
</PostBuildEvent>
185180
</PropertyGroup>
181+
<Import Project="custom.targets" />
186182
</Project>

TestFlightAPI/TestFlightAPI/TestFlightAPI.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
<ItemGroup>
4242
<Reference Include="System" />
4343
<Reference Include="Assembly-CSharp">
44-
<HintPath>..\..\..\..\Managed\Assembly-CSharp.dll</HintPath>
44+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Assembly-CSharp-firstpass">
47-
<HintPath>..\..\..\..\Managed\Assembly-CSharp-firstpass.dll</HintPath>
47+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp-firstpass.dll</HintPath>
4848
</Reference>
4949
<Reference Include="UnityEngine">
50-
<HintPath>..\..\..\..\Managed\UnityEngine.dll</HintPath>
50+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.dll</HintPath>
5151
</Reference>
5252
<Reference Include="KSPUtil">
53-
<HintPath>..\..\..\..\Managed\KSPUtil.dll</HintPath>
53+
<HintPath>$(KSP_DLL_PATH)\KSPUtil.dll</HintPath>
5454
</Reference>
5555
<Reference Include="UnityEngine.UI">
56-
<HintPath>..\..\..\..\Managed\UnityEngine.UI.dll</HintPath>
56+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.UI.dll</HintPath>
5757
</Reference>
5858
</ItemGroup>
5959
<ItemGroup>
@@ -79,10 +79,6 @@
7979
</MonoDevelop>
8080
</ProjectExtensions>
8181
<PropertyGroup>
82-
<PostBuildEvent>"E:\Games\Steam\SteamApps\common\Kerbal Space Program\pdb2mdb\pdb2mdb.exe" "$(TargetPath)"
83-
xcopy /Y "$(TargetPath)" "E:\Games\KSP11_GameData\TestFlight\Plugins"
84-
xcopy /Y "$(TargetDir)$(TargetName).pdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
85-
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
86-
</PostBuildEvent>
8782
</PropertyGroup>
83+
<Import Project="custom.targets" />
8884
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FilesToCopy Include="$(OutputPath)\TestFlightAPI.dll" />
4+
</ItemGroup>
5+
<ItemGroup>
6+
<MDBFilesToCopy Include="$(OutputPath)\TestFlightAPI.dll.mdb" />
7+
</ItemGroup>
8+
<Target Name="AfterBuild">
9+
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="..\..\GameData\TestFlight\Plugins\" />
10+
<Copy SourceFiles="@(MDBFilesToCopy)" DestinationFolder="..\..\GameData\TestFlight\Plugins\" />
11+
</Target>
12+
</Project>

TestFlightContracts/TestFlightContracts.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
<ItemGroup>
4242
<Reference Include="System" />
4343
<Reference Include="Assembly-CSharp">
44-
<HintPath>..\..\..\Managed\Assembly-CSharp.dll</HintPath>
44+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Assembly-CSharp-firstpass">
47-
<HintPath>..\..\..\Managed\Assembly-CSharp-firstpass.dll</HintPath>
47+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp-firstpass.dll</HintPath>
4848
</Reference>
4949
<Reference Include="UnityEngine">
50-
<HintPath>..\..\..\Managed\UnityEngine.dll</HintPath>
50+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.dll</HintPath>
5151
</Reference>
5252
<Reference Include="ContractConfigurator">
53-
<HintPath>..\..\..\Managed\ContractConfigurator.dll</HintPath>
53+
<HintPath>$(KSP_DLL_PATH)\ContractConfigurator.dll</HintPath>
5454
</Reference>
5555
<Reference Include="KSPUtil">
56-
<HintPath>..\..\..\Managed\KSPUtil.dll</HintPath>
56+
<HintPath>$(KSP_DLL_PATH)\KSPUtil.dll</HintPath>
5757
</Reference>
5858
</ItemGroup>
5959
<ItemGroup>
@@ -68,10 +68,6 @@
6868
</ItemGroup>
6969
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
7070
<PropertyGroup>
71-
<PostBuildEvent>"E:\Games\Steam\SteamApps\common\Kerbal Space Program\pdb2mdb\pdb2mdb.exe" "$(TargetPath)"
72-
xcopy /Y "$(TargetPath)" "E:\Games\KSP11_GameData\TestFlight\Plugins"
73-
xcopy /Y "$(TargetDir)$(TargetName).pdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
74-
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
75-
</PostBuildEvent>
7671
</PropertyGroup>
72+
<Import Project="custom.targets" />
7773
</Project>

TestFlightContracts/custom.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FilesToCopy Include="$(OutputPath)\TestFlightContracts.dll" />
4+
</ItemGroup>
5+
<ItemGroup>
6+
<MDBFilesToCopy Include="$(OutputPath)\TestFlightContracts.dll.mdb" />
7+
</ItemGroup>
8+
<Target Name="AfterBuild">
9+
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="..\GameData\TestFlight\Plugins\" />
10+
<Copy SourceFiles="@(MDBFilesToCopy)" DestinationFolder="..\GameData\TestFlight\Plugins\" />
11+
</Target>
12+
</Project>

TestFlightCore/TestFlightCore/TestFlightCore.csproj

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@
4242
<ItemGroup>
4343
<Reference Include="System" />
4444
<Reference Include="Assembly-CSharp">
45-
<HintPath>..\..\..\..\Managed\Assembly-CSharp.dll</HintPath>
45+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp.dll</HintPath>
4646
</Reference>
4747
<Reference Include="Assembly-CSharp-firstpass">
48-
<HintPath>..\..\..\..\Managed\Assembly-CSharp-firstpass.dll</HintPath>
48+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp-firstpass.dll</HintPath>
4949
</Reference>
5050
<Reference Include="UnityEngine">
51-
<HintPath>..\..\..\..\Managed\UnityEngine.dll</HintPath>
51+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.dll</HintPath>
5252
</Reference>
5353
<Reference Include="KSPAssets">
54-
<HintPath>..\..\..\..\Managed\KSPAssets.dll</HintPath>
54+
<HintPath>$(KSP_DLL_PATH)\KSPAssets.dll</HintPath>
5555
</Reference>
5656
<Reference Include="KSPUtil">
57-
<HintPath>..\..\..\..\Managed\KSPUtil.dll</HintPath>
57+
<HintPath>$(KSP_DLL_PATH)\KSPUtil.dll</HintPath>
5858
</Reference>
5959
<Reference Include="UnityEngine.UI">
60-
<HintPath>..\..\..\..\Managed\UnityEngine.UI.dll</HintPath>
60+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.UI.dll</HintPath>
6161
</Reference>
6262
<Reference Include="Vectrosity">
63-
<HintPath>..\..\..\..\Managed\Vectrosity.dll</HintPath>
63+
<HintPath>$(KSP_DLL_PATH)\Vectrosity.dll</HintPath>
6464
</Reference>
6565
</ItemGroup>
6666
<ItemGroup>
@@ -112,10 +112,6 @@
112112
<ItemGroup />
113113
<ItemGroup />
114114
<PropertyGroup>
115-
<PostBuildEvent>"E:\Games\Steam\SteamApps\common\Kerbal Space Program\pdb2mdb\pdb2mdb.exe" "$(TargetPath)"
116-
xcopy /Y "$(TargetPath)" "E:\Games\KSP11_GameData\TestFlight\Plugins"
117-
xcopy /Y "$(TargetDir)$(TargetName).pdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
118-
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
119-
</PostBuildEvent>
120115
</PropertyGroup>
116+
<Import Project="custom.targets" />
121117
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FilesToCopy Include="$(OutputPath)\TestFlightCore.dll" />
4+
</ItemGroup>
5+
<ItemGroup>
6+
<MDBFilesToCopy Include="$(OutputPath)\TestFlightCore.dll.mdb" />
7+
</ItemGroup>
8+
<Target Name="AfterBuild">
9+
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="..\..\GameData\TestFlight\Plugins\" />
10+
<Copy SourceFiles="@(MDBFilesToCopy)" DestinationFolder="..\..\GameData\TestFlight\Plugins\" />
11+
</Target>
12+
</Project>

TestFlightRF/TestFlightRF.csproj

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@
4242
<ItemGroup>
4343
<Reference Include="System" />
4444
<Reference Include="RealFuels">
45-
<HintPath>..\..\..\Managed\RealFuels.dll</HintPath>
45+
<HintPath>$(KSP_DLL_PATH)\RealFuels.dll</HintPath>
4646
</Reference>
4747
<Reference Include="Assembly-CSharp-firstpass">
48-
<HintPath>..\..\..\Managed\Assembly-CSharp-firstpass.dll</HintPath>
48+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp-firstpass.dll</HintPath>
4949
</Reference>
5050
<Reference Include="Assembly-CSharp">
51-
<HintPath>..\..\..\Managed\Assembly-CSharp.dll</HintPath>
51+
<HintPath>$(KSP_DLL_PATH)\Assembly-CSharp.dll</HintPath>
5252
</Reference>
5353
<Reference Include="UnityEngine">
54-
<HintPath>..\..\..\Managed\UnityEngine.dll</HintPath>
54+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.dll</HintPath>
5555
</Reference>
5656
<Reference Include="UnityEngine.UI">
57-
<HintPath>..\..\..\Managed\UnityEngine.UI.dll</HintPath>
57+
<HintPath>$(KSP_DLL_PATH)\UnityEngine.UI.dll</HintPath>
5858
</Reference>
5959
<Reference Include="KSPUtil">
60-
<HintPath>..\..\..\Managed\KSPUtil.dll</HintPath>
60+
<HintPath>$(KSP_DLL_PATH)\KSPUtil.dll</HintPath>
6161
</Reference>
6262
</ItemGroup>
6363
<ItemGroup>
@@ -76,10 +76,6 @@
7676
</ProjectReference>
7777
</ItemGroup>
7878
<PropertyGroup>
79-
<PostBuildEvent>"E:\Games\Steam\SteamApps\common\Kerbal Space Program\pdb2mdb\pdb2mdb.exe" "$(TargetPath)"
80-
xcopy /Y "$(TargetPath)" "E:\Games\KSP11_GameData\TestFlight\Plugins"
81-
xcopy /Y "$(TargetDir)$(TargetName).pdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
82-
xcopy /Y "$(TargetDir)$(TargetName).dll.mdb" "E:\Games\KSP11_GameData\TestFlight\Plugins"
83-
</PostBuildEvent>
8479
</PropertyGroup>
80+
<Import Project="custom.targets" />
8581
</Project>

TestFlightRF/custom.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FilesToCopy Include="$(OutputPath)\TestFlightRF.dll" />
4+
</ItemGroup>
5+
<ItemGroup>
6+
<MDBFilesToCopy Include="$(OutputPath)\TestFlightRF.dll.mdb" />
7+
</ItemGroup>
8+
<Target Name="AfterBuild">
9+
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="..\GameData\TestFlight\Plugins\" />
10+
<Copy SourceFiles="@(MDBFilesToCopy)" DestinationFolder="..\GameData\TestFlight\Plugins\" />
11+
</Target>
12+
</Project>

custom.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<FilesToCopy Include="$(OutputPath)\TestFlight.dll" />
4+
</ItemGroup>
5+
<ItemGroup>
6+
<MDBFilesToCopy Include="$(OutputPath)\TestFlight.dll.mdb" />
7+
</ItemGroup>
8+
<Target Name="AfterBuild">
9+
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder=".\GameData\TestFlight\Plugins\" />
10+
<Copy SourceFiles="@(MDBFilesToCopy)" DestinationFolder="..\..\GameData\TestFlight\Plugins\" />
11+
</Target>
12+
</Project>

0 commit comments

Comments
 (0)