Skip to content

Commit a3135cd

Browse files
committed
Fix error when GenerateKSPAssemblyAttribute is unset
1 parent 3555906 commit a3135cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

KSPCommon.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
Generate the KSPAssembly attribute based on the FileVersion property
8787
-->
8888
<Target Name="GenerateKSPAssemblyAttribute" BeforeTargets="CoreGenerateAssemblyInfo"
89-
Condition="$(GenerateKSPAssemblyAttribute)">
89+
Condition="'$(GenerateKSPAssemblyAttribute)' == 'true'">
9090
<ItemGroup>
9191
<AssemblyAttribute Include="KSPAssembly">
9292
<_Parameter1>$(AssemblyName)</_Parameter1>
@@ -110,7 +110,7 @@
110110
Otherwise 0.0.0 is used (no minimum version)
111111
-->
112112
<Target Name="GenerateKSPAssemblyDependencyAttributes" BeforeTargets="CoreGenerateAssemblyInfo"
113-
Condition="$(GenerateKSPAssemblyDependencyAttributes) == 'true'">
113+
Condition="'$(GenerateKSPAssemblyDependencyAttributes)' == 'true'">
114114
<ItemGroup>
115115
<Reference Update="%(Reference.identity)" Condition="'%(Reference.CKANIdentifier)%(Reference.KSPAssemblyName)' != ''">
116116
<KSPAssemblyName Condition="%(Reference.KSPAssemblyName) == ''">$([System.String]::Copy('%(Reference.identity)').Split(',')[0])</KSPAssemblyName>

0 commit comments

Comments
 (0)