|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 | +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <PropertyGroup> |
4 | 4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
5 | 5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
6 | 6 | <ProjectGuid>{6BB6BF04-C58F-47EE-A4BB-3CADA7850606}</ProjectGuid> |
7 | 7 | <OutputType>Library</OutputType> |
8 | 8 | <RootNamespace>ProbeControlRoom</RootNamespace> |
9 | 9 | <AssemblyName>ProbeControlRoomRecontrolled</AssemblyName> |
10 | | - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
| 10 | + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> |
| 11 | + <TargetFrameworkProfile /> |
11 | 12 | </PropertyGroup> |
12 | 13 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
13 | 14 | <DebugSymbols>true</DebugSymbols> |
14 | | - <DebugType>full</DebugType> |
| 15 | + <DebugType>portable</DebugType> |
15 | 16 | <Optimize>false</Optimize> |
16 | 17 | <OutputPath>bin\Debug</OutputPath> |
17 | 18 | <DefineConstants>DEBUG;</DefineConstants> |
|
37 | 38 | <Command type="AfterBuild" command="PostBuild.bat ${TargetFile} ${ProjectConfig}" workingdir="${ProjectDir}" pauseExternalConsole="True" /> |
38 | 39 | </CustomCommands> |
39 | 40 | </CustomCommands> |
| 41 | + <DebugType>portable</DebugType> |
| 42 | + <DebugSymbols>true</DebugSymbols> |
| 43 | + </PropertyGroup> |
| 44 | + <PropertyGroup> |
| 45 | + <RunPostBuildEvent>Always</RunPostBuildEvent> |
40 | 46 | </PropertyGroup> |
41 | 47 | <ItemGroup> |
42 | 48 | <Compile Include="AssemblyVersion.cs"> |
43 | 49 | <AutoGen>True</AutoGen> |
44 | 50 | <DesignTime>True</DesignTime> |
45 | 51 | <DependentUpon>AssemblyVersion.tt</DependentUpon> |
46 | 52 | </Compile> |
| 53 | + <Compile Include="CivilianKerbal.cs" /> |
47 | 54 | <Compile Include="InstallChecker.cs" /> |
48 | 55 | <Compile Include="Properties\AssemblyInfo.cs" /> |
49 | 56 | <Compile Include="ProbeControlRoom.cs" /> |
|
69 | 76 | <Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\UnityEngine*.dll"> |
70 | 77 | <Private>False</Private> |
71 | 78 | </Reference> |
| 79 | + <Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
| 80 | + <SpecificVersion>False</SpecificVersion> |
| 81 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\KSP Stripped\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath> |
| 82 | + </Reference> |
72 | 83 | <Reference Include="System" /> |
73 | 84 | <Reference Include="System" /> |
74 | 85 | <Reference Include="ToolbarControl"> |
75 | 86 | <HintPath>$(KSPDIR)\GameData\001_ToolbarControl\Plugins\ToolbarControl.dll</HintPath> |
76 | 87 | </Reference> |
| 88 | + <Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
| 89 | + <SpecificVersion>False</SpecificVersion> |
| 90 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll</HintPath> |
| 91 | + </Reference> |
| 92 | + <Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
| 93 | + <SpecificVersion>False</SpecificVersion> |
| 94 | + <HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\KSP Stripped\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath> |
| 95 | + </Reference> |
77 | 96 | </ItemGroup> |
78 | 97 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
79 | 98 | <PropertyGroup> |
80 | | - <PostBuildEvent>set KSPDIR=$(KSPDIR) |
81 | | - |
82 | | -IF "%25KSPDIR%25"=="" ( |
83 | | - |
84 | | - ECHO Configuration error - KSPDIR not specified in project. |
85 | | - |
86 | | - ECHO Either set KSPDIR environment variable or edit BetterLoadSaveGame.Common.props |
87 | | - |
88 | | - PAUSE |
89 | | - |
90 | | - GOTO DONE |
91 | | - |
92 | | -) |
93 | | - |
94 | | -start /D $(SolutionDir) /WAIT deploy.bat $(TargetDir) $(TargetFileName) $(TargetName) |
95 | | - |
96 | | -if $(ConfigurationName) == Release ( |
97 | | - |
98 | | - start /D $(SolutionDir) /WAIT buildRelease.bat $(TargetDir) $(TargetFileName) $(TargetName) |
99 | | - |
100 | | -) |
101 | | -</PostBuildEvent> |
| 99 | + <PostBuildEvent>xcopy /Y $(TargetDir)$(TargetName).* $(SolutionDir)GameData\$(ProjectName)\Plugins\$(TargetName).*</PostBuildEvent> |
102 | 100 | </PropertyGroup> |
103 | 101 | <PropertyGroup> |
104 | 102 | <PreBuildEvent>"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt" |
|
0 commit comments