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