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
9
9
* Support all forms of version numbers
10
10
* KSPAssembly and KSPAssemblyDependency may optionally be major.minor (omitting patch)
11
11
* 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
12
13
13
14
## 0.0.3 - 2024-12-16
14
15
Original file line number Diff line number Diff line change 118
118
<KSPAssemblyVersion Condition =" '%(Reference.KSPAssemblyVersion)' == ''" >0.0</KSPAssemblyVersion >
119
119
<KSPAssemblyVersionElementCount >$([System.String]::Copy('%(Reference.KSPAssemblyVersion)').Split('.').Length)</KSPAssemblyVersionElementCount >
120
120
</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 >
121
125
</ItemGroup >
122
126
<ItemGroup >
123
127
<AssemblyAttribute Include =" KSPAssemblyDependency" Condition =" '%(Reference.KSPAssemblyName)' != ''" >
130
134
<_Parameter4 Condition =" %(Reference.KSPAssemblyVersionElementCount) > 2" >$([System.String]::Copy('%(Reference.KSPAssemblyVersion)').Split('.')[2])</_Parameter4 >
131
135
<_Parameter4_TypeName Condition =" %(Reference.KSPAssemblyVersionElementCount) > 2" >System.Int32</_Parameter4_TypeName >
132
136
</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 >
133
147
</ItemGroup >
134
148
</Target >
135
149
You can’t perform that action at this time.
0 commit comments