|
7 | 7 | <!-- default settings for KSPBT targets and references --> |
8 | 8 | <PropertyGroup> |
9 | 9 | <!-- reference unity and KSP assemblies unless explicitly disabled --> |
10 | | - <ReferenceKSPSystemAssemblies Condition=" '$(ReferenceKSPSystemAssemblies)' == '' "> |
11 | | - true |
12 | | - </ReferenceKSPSystemAssemblies> |
13 | | - <ReferenceKSPUnityAssemblies Condition=" '$(ReferenceKSPUnityAssemblies)' == '' "> |
14 | | - true |
15 | | - </ReferenceKSPUnityAssemblies> |
16 | | - <ReferenceKSPGameAssemblies Condition=" '$(ReferenceKSPGameAssemblies)' == '' "> |
17 | | - true |
18 | | - </ReferenceKSPGameAssemblies> |
| 10 | + <ReferenceKSPSystemAssemblies Condition=" '$(ReferenceKSPSystemAssemblies)' == '' ">true</ReferenceKSPSystemAssemblies> |
| 11 | + <ReferenceKSPUnityAssemblies Condition=" '$(ReferenceKSPUnityAssemblies)' == '' ">true</ReferenceKSPUnityAssemblies> |
| 12 | + <ReferenceKSPGameAssemblies Condition=" '$(ReferenceKSPGameAssemblies)' == '' ">true</ReferenceKSPGameAssemblies> |
19 | 13 |
|
20 | 14 |
|
21 | 15 | <!-- Copy DLLs to mod folder --> |
22 | | - <CopyDLLsToPluginFolder Condition=" '$(CopyDLLsToPluginFolder)' == '' "> |
23 | | - true |
24 | | - </CopyDLLsToPluginFolder> |
| 16 | + <CopyDLLsToPluginFolder Condition=" '$(CopyDLLsToPluginFolder)' == '' ">true</CopyDLLsToPluginFolder> |
25 | 17 |
|
26 | 18 |
|
27 | | - <GenerateKSPAssemblyAttribute Condition=" '$(GenerateKSPAssemblyAttribute)' == '' "> |
28 | | - true |
29 | | - </GenerateKSPAssemblyAttribute> |
| 19 | + <GenerateKSPAssemblyAttribute Condition=" '$(GenerateKSPAssemblyAttribute)' == '' ">true</GenerateKSPAssemblyAttribute> |
30 | 20 |
|
31 | | - <GenerateKSPAssemblyDependencyAttributes Condition=" '$(GenerateKSPAssemblyDependencyAttributes)' == '' "> |
32 | | - true |
33 | | - </GenerateKSPAssemblyDependencyAttributes> |
| 21 | + <GenerateKSPAssemblyDependencyAttributes Condition=" '$(GenerateKSPAssemblyDependencyAttributes)' == '' ">true</GenerateKSPAssemblyDependencyAttributes> |
34 | 22 |
|
35 | | - <GenerateKSPVersionFile Condition=" '$(GenerateKSPVersionFile)' == '' "> |
36 | | - true |
37 | | - </GenerateKSPVersionFile> |
| 23 | + <GenerateKSPVersionFile Condition=" '$(GenerateKSPVersionFile)' == '' ">true</GenerateKSPVersionFile> |
38 | 24 |
|
39 | 25 | <!-- default CKAN compatibility versions --> |
40 | | - <CKANCompatibleVersions Condition=" '$(CKANCompatibleVersions)' == '' "> |
41 | | - 1.12 1.11 1.10 1.9 1.8 |
42 | | - </CKANCompatibleVersions> |
| 26 | + <CKANCompatibleVersions Condition=" '$(CKANCompatibleVersions)' == '' ">1.12 1.11 1.10 1.9 1.8</CKANCompatibleVersions> |
43 | 27 | </PropertyGroup> |
44 | 28 |
|
45 | 29 | <!--Parse KSP platform-specific paths --> |
46 | 30 | <!-- These can be overwritten by user and props files --> |
47 | 31 | <PropertyGroup Condition=" '$(KSPManagedRelativePath)' == '' "> |
48 | | - <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('Windows')) "> |
49 | | - KSP_x64_Data/Managed |
50 | | - </KSPManagedRelativePath> |
51 | | - <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('OSX')) "> |
52 | | - KSP.app/Contents/Resources/Data/Managed |
53 | | - </KSPManagedRelativePath> |
54 | | - <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('Linux')) "> |
55 | | - KSP_Data/Managed |
56 | | - </KSPManagedRelativePath> |
| 32 | + <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">KSP_x64_Data/Managed</KSPManagedRelativePath> |
| 33 | + <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('OSX')) ">KSP.app/Contents/Resources/Data/Managed</KSPManagedRelativePath> |
| 34 | + <KSPManagedRelativePath Condition=" $([MSBuild]::IsOsPlatform('Linux')) ">KSP_Data/Managed</KSPManagedRelativePath> |
57 | 35 | </PropertyGroup> |
58 | 36 |
|
59 | 37 | <PropertyGroup> |
60 | 38 | <KSPExecutable Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">KSP_x64.exe</KSPExecutable> |
61 | 39 | <KSPExecutable Condition=" $([MSBuild]::IsOsPlatform('OSX')) ">KSP.app/Contents/MacOS/KSP</KSPExecutable> |
62 | 40 | <KSPExecutable Condition=" $([MSBuild]::IsOsPlatform('Linux')) ">KSP.x86_64</KSPExecutable> |
63 | | - <SteamKSPRoot Condition=" $([MSBuild]::IsOsPlatform('Windows')) "> |
64 | | - C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program |
65 | | - </SteamKSPRoot> |
66 | | - <SteamKSPRoot Condition=" $([MSBuild]::IsOsPlatform('OSX')) "> |
67 | | - $(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program |
68 | | - </SteamKSPRoot> |
| 41 | + <SteamKSPRoot Condition=" $([MSBuild]::IsOsPlatform('Windows')) ">C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program</SteamKSPRoot> |
| 42 | + <SteamKSPRoot Condition=" $([MSBuild]::IsOsPlatform('OSX')) ">$(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program</SteamKSPRoot> |
69 | 43 | </PropertyGroup> |
70 | 44 |
|
71 | 45 | <!-- Calculate mod paths --> |
72 | 46 | <!-- These can be overwritten by user, csproj, and props files --> |
73 | 47 | <PropertyGroup> |
74 | 48 | <!-- The root directory of the mod, the folder that gets placed in GameData --> |
75 | | - <KSPModRoot Condition=" '$(KSPModRoot)' == '' "> |
76 | | - $(ProjectDir)/../GameData/$(ProjectName)/ |
77 | | - </KSPModRoot> |
78 | | - <KSPModPluginFolder Condition=" '$(KSPModPluginFolder)' == '' "> |
79 | | - $(KSPModGameData)/Plugins/ |
80 | | - </KSPModPluginFolder> |
| 49 | + <KSPModRoot Condition=" '$(KSPModRoot)' == '' ">$(ProjectDir)/../GameData/$(ProjectName)/</KSPModRoot> |
| 50 | + <KSPModPluginFolder Condition=" '$(KSPModPluginFolder)' == '' ">$(KSPModGameData)/Plugins/</KSPModPluginFolder> |
81 | 51 | </PropertyGroup> |
82 | 52 |
|
83 | 53 | <!-- Import the csproj.user file. --> |
|
141 | 111 | <DebugType>portable</DebugType> |
142 | 112 | </PropertyGroup> |
143 | 113 |
|
| 114 | + <!-- Prevent the compiler from acquiring or referencing any external reference assemblies --> |
| 115 | + <PropertyGroup Condition=" '$(ReferenceKSPSystemAssemblies)' == 'true' "> |
| 116 | + <!-- Do not download the .NET Framework Target Pack NuGet package automatically --> |
| 117 | + <DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads> |
| 118 | + <!-- Instruct the compiler to not automatically reference mscorlib --> |
| 119 | + <NoStandardLib>true</NoStandardLib> |
| 120 | + <!-- Prevent the GetReferenceAssemblyPaths task in Microsoft.Common.CurrentVersion.targets |
| 121 | + from attempting to locate an external copy of the reference assemblies. --> |
| 122 | + <AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages> |
| 123 | + <FrameworkPathOverride>$(ManagedPath)</FrameworkPathOverride> |
| 124 | + <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> |
| 125 | + </PropertyGroup> |
| 126 | + |
| 127 | + |
| 128 | + <!-- Import references --> |
| 129 | + <ItemGroup Condition=" '$(ReferenceKSPSystemAssemblies)' == 'true' "> |
| 130 | + <Reference Include="$(ManagedPath)/System.dll"> |
| 131 | + <Name>System (KSP/Mono)</Name> |
| 132 | + <Private>False</Private> |
| 133 | + </Reference> |
| 134 | + <Reference Include="$(ManagedPath)/System.Core.dll"> |
| 135 | + <Name>System (KSP/Mono)</Name> |
| 136 | + <Private>False</Private> |
| 137 | + </Reference> |
| 138 | + <Reference Include="$(ManagedPath)/mscorlib.dll"> |
| 139 | + <Name>System.Core (KSP/Mono)</Name> |
| 140 | + <Private>False</Private> |
| 141 | + </Reference> |
| 142 | + <Reference Include="$(ManagedPath)/System.Xml.dll"> |
| 143 | + <Name>System.Xml (KSP/Mono)</Name> |
| 144 | + <Private>False</Private> |
| 145 | + </Reference> |
| 146 | + </ItemGroup> |
| 147 | + <ItemGroup Condition=" '$(ReferenceKSPUnityAssemblies)' == 'true' "> |
| 148 | + <Reference Include="$(ManagedPath)/UnityEngine*.dll"> |
| 149 | + <Name>UnityEngine</Name> |
| 150 | + <Private>False</Private> |
| 151 | + </Reference> |
| 152 | + </ItemGroup> |
| 153 | + <ItemGroup Condition=" '$(ReferenceKSPGameAssemblies)' == 'true' "> |
| 154 | + <Reference Include="$(ManagedPath)/Assembly-CSharp.dll"> |
| 155 | + <Name>Assembly-CSharp</Name> |
| 156 | + <Private>False</Private> |
| 157 | + </Reference> |
| 158 | + <Reference Include="$(ManagedPath)/Assembly-CSharp-firstpass.dll"> |
| 159 | + <Name>Assembly-CSharp-firstpass</Name> |
| 160 | + <Private>False</Private> |
| 161 | + </Reference> |
| 162 | + </ItemGroup> |
| 163 | + |
| 164 | + |
144 | 165 | <ItemGroup> |
145 | 166 | <Compile Include="$(MSBuildThisFileDirectory)/include/*.cs" Condition="exists('$(MSBuildThisFileDirectory)/include')"/> |
146 | 167 | </ItemGroup> |
|
0 commit comments