15
15
// limitations under the License.
16
16
17
17
using System ;
18
+ using System . ComponentModel ;
18
19
using System . Xml . Serialization ;
19
20
20
21
namespace chocolatey . infrastructure . app . configuration
@@ -44,46 +45,130 @@ public sealed class PackagesConfigFilePackageSetting
44
45
[ XmlAttribute ( AttributeName = "applyPackageParametersToDependencies" ) ]
45
46
public bool ApplyPackageParametersToDependencies { get ; set ; }
46
47
48
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
49
+ public bool ApplyPackageParametersToDependenciesSpecified
50
+ {
51
+ get { return ApplyPackageParametersToDependencies ; }
52
+ }
53
+
47
54
[ XmlAttribute ( AttributeName = "applyInstallArgumentsToDependencies" ) ]
48
55
public bool ApplyInstallArgumentsToDependencies { get ; set ; }
49
56
57
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
58
+ public bool ApplyInstallArgumentsToDependenciesSpecified
59
+ {
60
+ get { return ApplyInstallArgumentsToDependencies ; }
61
+ }
62
+
50
63
[ XmlAttribute ( AttributeName = "forceX86" ) ]
51
64
public bool ForceX86 { get ; set ; }
52
65
66
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
67
+ public bool ForceX86Specified
68
+ {
69
+ get { return ForceX86 ; }
70
+ }
71
+
53
72
[ XmlAttribute ( AttributeName = "ignoreDependencies" ) ]
54
73
public bool IgnoreDependencies { get ; set ; }
55
74
75
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
76
+ public bool IgnoreDependenciesSpecified
77
+ {
78
+ get { return IgnoreDependencies ; }
79
+ }
80
+
56
81
[ XmlAttribute ( AttributeName = "disabled" ) ]
57
82
public bool Disabled { get ; set ; }
58
83
84
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
85
+ public bool DisabledSpecified
86
+ {
87
+ get { return Disabled ; }
88
+ }
89
+
59
90
[ XmlAttribute ( AttributeName = "pinPackage" ) ]
60
91
public bool PinPackage { get ; set ; }
61
92
93
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
94
+ public bool PinPackageSpecified
95
+ {
96
+ get { return PinPackage ; }
97
+ }
98
+
62
99
[ System . ComponentModel . DefaultValue ( - 1 ) ]
63
100
[ XmlAttribute ( AttributeName = "executionTimeout" ) ]
64
101
public int ExecutionTimeout { get ; set ; }
65
102
103
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
104
+ public bool ExecutionTimeoutSpecified
105
+ {
106
+ get { return ExecutionTimeout != 0 ; }
107
+ }
108
+
66
109
[ XmlAttribute ( AttributeName = "force" ) ]
67
110
public bool Force { get ; set ; }
68
111
112
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
113
+ public bool ForceSpecified
114
+ {
115
+ get { return Force ; }
116
+ }
117
+
69
118
[ XmlAttribute ( AttributeName = "prerelease" ) ]
70
119
public bool Prerelease { get ; set ; }
71
120
121
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
122
+ public bool PrereleaseSpecified
123
+ {
124
+ get { return Prerelease ; }
125
+ }
126
+
72
127
[ XmlAttribute ( AttributeName = "overrideArguments" ) ]
73
128
public bool OverrideArguments { get ; set ; }
74
129
130
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
131
+ public bool OverrideArgumentsSpecified
132
+ {
133
+ get { return OverrideArguments ; }
134
+ }
135
+
75
136
[ XmlAttribute ( AttributeName = "notSilent" ) ]
76
137
public bool NotSilent { get ; set ; }
77
138
139
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
140
+ public bool NotSilentSpecified
141
+ {
142
+ get { return NotSilent ; }
143
+ }
144
+
78
145
[ XmlAttribute ( AttributeName = "allowDowngrade" ) ]
79
146
public bool AllowDowngrade { get ; set ; }
80
147
148
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
149
+ public bool AllowDowngradeSpecified
150
+ {
151
+ get { return AllowDowngrade ; }
152
+ }
153
+
81
154
[ XmlAttribute ( AttributeName = "forceDependencies" ) ]
82
155
public bool ForceDependencies { get ; set ; }
83
156
157
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
158
+ public bool ForceDependenciesSpecified
159
+ {
160
+ get { return ForceDependencies ; }
161
+ }
162
+
84
163
[ XmlAttribute ( AttributeName = "skipAutomationScripts" ) ]
85
164
public bool SkipAutomationScripts { get ; set ; }
86
165
166
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
167
+ public bool SkipAutomationScriptsSpecified
168
+ {
169
+ get { return SkipAutomationScripts ; }
170
+ }
171
+
87
172
[ XmlAttribute ( AttributeName = "user" ) ]
88
173
public string User { get ; set ; }
89
174
@@ -99,15 +184,39 @@ public sealed class PackagesConfigFilePackageSetting
99
184
[ XmlAttribute ( AttributeName = "ignoreChecksums" ) ]
100
185
public bool IgnoreChecksums { get ; set ; }
101
186
187
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
188
+ public bool IgnoreChecksumsSpecified
189
+ {
190
+ get { return IgnoreChecksums ; }
191
+ }
192
+
102
193
[ XmlAttribute ( AttributeName = "allowEmptyChecksums" ) ]
103
194
public bool AllowEmptyChecksums { get ; set ; }
104
195
196
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
197
+ public bool AllowEmptyChecksumsSpecified
198
+ {
199
+ get { return AllowEmptyChecksums ; }
200
+ }
201
+
105
202
[ XmlAttribute ( AttributeName = "allowEmptyChecksumsSecure" ) ]
106
203
public bool AllowEmptyChecksumsSecure { get ; set ; }
107
204
205
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
206
+ public bool AllowEmptyChecksumsSecureSpecified
207
+ {
208
+ get { return AllowEmptyChecksumsSecure ; }
209
+ }
210
+
108
211
[ XmlAttribute ( AttributeName = "requireChecksums" ) ]
109
212
public bool RequireChecksums { get ; set ; }
110
213
214
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
215
+ public bool RequireChecksumsSpecified
216
+ {
217
+ get { return RequireChecksums ; }
218
+ }
219
+
111
220
[ XmlAttribute ( AttributeName = "downloadChecksum" ) ]
112
221
public string DownloadChecksum { get ; set ; }
113
222
@@ -123,40 +232,112 @@ public sealed class PackagesConfigFilePackageSetting
123
232
[ XmlAttribute ( AttributeName = "ignorePackageExitCodes" ) ]
124
233
public bool IgnorePackageExitCodes { get ; set ; }
125
234
235
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
236
+ public bool IgnorePackageExitCodesSpecified
237
+ {
238
+ get { return IgnorePackageExitCodes ; }
239
+ }
240
+
126
241
[ XmlAttribute ( AttributeName = "usePackageExitCodes" ) ]
127
242
public bool UsePackageExitCodes { get ; set ; }
128
243
244
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
245
+ public bool UsePackageExitCodesSpecified
246
+ {
247
+ get { return UsePackageExitCodes ; }
248
+ }
249
+
129
250
[ XmlAttribute ( AttributeName = "stopOnFirstFailure" ) ]
130
251
public bool StopOnFirstFailure { get ; set ; }
131
252
253
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
254
+ public bool StopOnFirstFailureSpecified
255
+ {
256
+ get { return StopOnFirstFailure ; }
257
+ }
258
+
132
259
[ XmlAttribute ( AttributeName = "exitWhenRebootDetected" ) ]
133
260
public bool ExitWhenRebootDetected { get ; set ; }
134
261
262
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
263
+ public bool ExitWhenRebootDetectedSpecified
264
+ {
265
+ get { return ExitWhenRebootDetected ; }
266
+ }
267
+
135
268
[ XmlAttribute ( AttributeName = "ignoreDetectedReboot" ) ]
136
269
public bool IgnoreDetectedReboot { get ; set ; }
137
270
271
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
272
+ public bool IgnoreDetectedRebootSpecified
273
+ {
274
+ get { return IgnoreDetectedReboot ; }
275
+ }
276
+
138
277
[ XmlAttribute ( AttributeName = "disableRepositoryOptimizations" ) ]
139
278
public bool DisableRepositoryOptimizations { get ; set ; }
140
279
280
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
281
+ public bool DisableRepositoryOptimizationsSpecified
282
+ {
283
+ get { return DisableRepositoryOptimizations ; }
284
+ }
285
+
141
286
[ XmlAttribute ( AttributeName = "acceptLicense" ) ]
142
287
public bool AcceptLicense { get ; set ; }
143
288
289
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
290
+ public bool AcceptLicenseSpecified
291
+ {
292
+ get { return AcceptLicense ; }
293
+ }
294
+
144
295
[ XmlAttribute ( AttributeName = "confirm" ) ]
145
296
public bool Confirm { get ; set ; }
146
297
298
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
299
+ public bool ConfirmSpecified
300
+ {
301
+ get { return Confirm ; }
302
+ }
303
+
147
304
[ XmlAttribute ( AttributeName = "limitOutput" ) ]
148
305
public bool LimitOutput { get ; set ; }
149
306
307
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
308
+ public bool LimitOutputSpecified
309
+ {
310
+ get { return LimitOutput ; }
311
+ }
312
+
150
313
[ XmlAttribute ( AttributeName = "cacheLocation" ) ]
151
314
public string CacheLocation { get ; set ; }
152
315
153
316
[ XmlAttribute ( AttributeName = "failOnStderr" ) ]
154
317
public bool FailOnStderr { get ; set ; }
155
318
319
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
320
+ public bool FailOnStderrSpecified
321
+ {
322
+ get { return FailOnStderr ; }
323
+ }
324
+
156
325
[ XmlAttribute ( AttributeName = "useSystemPowershell" ) ]
157
326
public bool UseSystemPowershell { get ; set ; }
158
327
328
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
329
+ public bool UseSystemPowershellSpecified
330
+ {
331
+ get { return UseSystemPowershell ; }
332
+ }
333
+
159
334
[ XmlAttribute ( AttributeName = "noProgress" ) ]
160
335
public bool NoProgress { get ; set ; }
336
+
337
+ [ XmlIgnore , EditorBrowsable ( EditorBrowsableState . Never ) ]
338
+ public bool NoProgressSpecified
339
+ {
340
+ get { return NoProgress ; }
341
+ }
161
342
}
162
343
}
0 commit comments