File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file
99* Support all forms of version numbers
1010 * KSPAssembly and KSPAssemblyDependency may optionally be major.minor (omitting patch)
1111 * KSPVersionFile.Version now defaults to $(FileVersion) if not set, which should support any number of elements
12+ * ProjectReference may now include <KSPAssemblyName > which will generate a ` KSPAssemblyDependency ` attribute
1213
1314## 0.0.3 - 2024-12-16
1415
Original file line number Diff line number Diff line change 118118 <KSPAssemblyVersion Condition =" '%(Reference.KSPAssemblyVersion)' == ''" >0.0</KSPAssemblyVersion >
119119 <KSPAssemblyVersionElementCount >$([System.String]::Copy('%(Reference.KSPAssemblyVersion)').Split('.').Length)</KSPAssemblyVersionElementCount >
120120 </Reference >
121+ <ProjectReference Update =" %(ProjectReference.identity)" Condition =" '%(Reference.KSPAssemblyName)' != ''" >
122+ <KSPAssemblyVersion Condition =" '%(ProjectReference.KSPAssemblyVersion)' == ''" >$(FileVersion)</KSPAssemblyVersion >
123+ <KSPAssemblyVersionElementCount >$([System.String]::Copy('%(ProjectReference.KSPAssemblyVersion)').Split('.').Length)</KSPAssemblyVersionElementCount >
124+ </ProjectReference >
121125 </ItemGroup >
122126 <ItemGroup >
123127 <AssemblyAttribute Include =" KSPAssemblyDependency" Condition =" '%(Reference.KSPAssemblyName)' != ''" >
130134 <_Parameter4 Condition =" %(Reference.KSPAssemblyVersionElementCount) > 2" >$([System.String]::Copy('%(Reference.KSPAssemblyVersion)').Split('.')[2])</_Parameter4 >
131135 <_Parameter4_TypeName Condition =" %(Reference.KSPAssemblyVersionElementCount) > 2" >System.Int32</_Parameter4_TypeName >
132136 </AssemblyAttribute >
137+ <AssemblyAttribute Include =" KSPAssemblyDependency" Condition =" '%(ProjectReference.KSPAssemblyName)' != ''" >
138+ <_Parameter1 >%(ProjectReference.KSPAssemblyName)</_Parameter1 >
139+ <_Parameter1_TypeName >System.String</_Parameter1_TypeName >
140+ <_Parameter2 >$([System.String]::Copy('%(ProjectReference.KSPAssemblyVersion)').Split('.')[0])</_Parameter2 >
141+ <_Parameter2_TypeName >System.Int32</_Parameter2_TypeName >
142+ <_Parameter3 >$([System.String]::Copy('%(ProjectReference.KSPAssemblyVersion)').Split('.')[1])</_Parameter3 >
143+ <_Parameter3_TypeName >System.Int32</_Parameter3_TypeName >
144+ <_Parameter4 Condition =" %(ProjectReference.KSPAssemblyVersionElementCount) > 2" >$([System.String]::Copy('%(ProjectReference.KSPAssemblyVersion)').Split('.')[2])</_Parameter4 >
145+ <_Parameter4_TypeName Condition =" %(ProjectReference.KSPAssemblyVersionElementCount) > 2" >System.Int32</_Parameter4_TypeName >
146+ </AssemblyAttribute >
133147 </ItemGroup >
134148 </Target >
135149
You can’t perform that action at this time.
0 commit comments