Skip to content

Commit e4dc1f7

Browse files
committed
Only include Log.cs when KSPBT_ReferenceUnityAssemblies is true (#61)
1 parent 7cd9ed8 commit e4dc1f7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file
1919
managed folder. Setting this property to false will load the implicit framework DLLs instead.
2020
- Mod dependencies should now be declared with
2121
`ModReference` items. This avoids the need for the KSP install path to be known at evaluation time.
22+
- Only include Log.cs (or anything else in include/unity) when `KSPBT_ReferenceUnityAssemblies` is `true` (#61)
2223

2324
### Docs
2425

KSPCommon.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
<!-- Import solution-wide props if it exists -->
9090
<Import Condition=" Exists('$(SolutionDir)$(SolutionName).props') " Project="$(SolutionDir)$(SolutionName).props"/>
9191

92-
<ItemGroup>
93-
<Compile Include="$(MSBuildThisFileDirectory)/include/*.cs" Condition="exists('$(MSBuildThisFileDirectory)/include')"/>
92+
<ItemGroup Condition=" exists('$(MSBuildThisFileDirectory)/include') " >
93+
<Compile
94+
Include="$(MSBuildThisFileDirectory)/include/unity/*.cs"
95+
Condition=" '$(KSPBT_ReferenceUnityAssemblies)' == 'true' "/>
9496
</ItemGroup>
9597
</Project>
File renamed without changes.

0 commit comments

Comments
 (0)