-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.vssbe
616 lines (616 loc) · 25.9 KB
/
.vssbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
{
"Header": {
"application": "http://visualstudiogallery.msdn.microsoft.com/0d1dbfd7-ed8a-40af-ae39-281bfeca2334/",
"Compatibility": "0.9"
},
"Components": [
{
"ClassName": "InternalComponent",
"Enabled": true
},
{
"ClassName": "UserVariableComponent",
"Enabled": true
},
{
"ClassName": "OWPComponent",
"Enabled": true
},
{
"ClassName": "FileComponent",
"Enabled": true
},
{
"ClassName": "DTEComponent",
"Enabled": true
},
{
"ClassName": "BuildComponent",
"Enabled": true
},
{
"ClassName": "ConditionComponent",
"Enabled": true
},
{
"ClassName": "CommentComponent",
"Enabled": true
}
],
"PreBuild": [
{
"Enabled": true,
"Name": "Definitions",
"Caption": "Prepares data",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[\"\r\n Prepares data - versions, revBuild & information from git\r\n\"]\r\n\r\n#[var tStart = $([System.DateTime]::Parse(\"2015/09/27\").ToBinary())]\r\n#[var tNow = $([System.DateTime]::UtcNow.Ticks)]\r\n#[var revBuild = $([System.TimeSpan]::FromTicks($([MSBuild]::Subtract($(tNow), $(tStart)))).TotalMinutes.ToString(\"0\"))]\r\n\r\n#[var tplVersion = #[File get(\"Version.tpl\")]]\r\n\r\n#[var pDir = vsSolutionBuildEvent/]\r\n#[var pDirBridge = Bridge/]\r\n#[var pDirCIM = CI.MSBuild/]\r\n#[var pDirDevenv = Devenv/]\r\n#[var pDirProvider = Provider/]\r\n\r\n#[var numSBE = #[File get(\".version\")]]\r\n#[var numBridge = #[File get(\"#[var pDirBridge].version\")]]\r\n#[var numCIM = #[File get(\"#[var pDirCIM].version\")]]\r\n#[var numDevenv = #[File get(\"#[var pDirDevenv].version\")]]\r\n#[var numProvider = #[File get(\"#[var pDirProvider].version\")]]\r\n\r\n#[\" the 0 it's the reserved number for patches from external assemblies /see AssemblyInfo \"]\r\n\r\n#[var num0Bridge = #[var numBridge].0]\r\n#[var num0CIM = #[var numCIM].0]\r\n#[var num0Devenv = #[var numDevenv].0]\r\n#[var num0Provider = #[var numProvider].0]\r\n"
}
},
{
"Enabled": true,
"Name": "Version",
"Caption": "Updating version",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[( #[File exists.directory(\".git\")] && #[File exists.file(\"git.exe\", true)] )\r\n{\r\n #[var branchSha1 = #[File sout(\"git\", \"rev-parse --short HEAD\")]]\r\n #[var branchName = #[File sout(\"git\", \"rev-parse --abbrev-ref HEAD\")]]\r\n #[var branchRevCount = #[File sout(\"git\", \"rev-list HEAD --count\")]]\r\n \r\n #[var csVersion = $(tplVersion.Replace(%branchName%, \"$(branchName)\").Replace(%branchSha1%, \"$(branchSha1)\").Replace(%branchRevCount%, \"$(branchRevCount)\"))]\r\n \r\n #[($(branchName) == \"HEAD\") {\r\n #[var branchName = $(APPVEYOR_REPO_BRANCH)]\r\n }]\r\n}\r\nelse {\r\n #[var csVersion = $(tplVersion.Replace(%branchName%, \"-\").Replace(%branchSha1%, \"-\").Replace(%branchRevCount%, \"-\"))]\r\n}]\r\n\r\n\r\n#[\"\r\n Updating version for 'vsSolutionBuildEvent'.\r\n \r\n Note:\r\n * For getting the main project path, sample:\r\n #[var pDir = $($(ProjectDir:$(SolutionName)))]\r\n\"]\r\n\r\n#[var cs = $(csVersion.Replace(%Version%, \"$(numSBE.Replace(\".\", \", \")), $(revBuild)\").Replace(%namespace%, \"\"))]\r\n#[var cs = $(cs.Replace(%VersionRevString%, \"$(numSBE).$(revBuild)\").Replace(%VersionString%, \"$(numSBE)\"))]\r\n#[File write(\"#[var pDir]Version.cs\"):#[var cs]]\r\n\r\n\r\n#[\"\r\n .vsixmanifest\r\n\"]\r\n\r\n#[($(Configuration) ~= \"_with_revision\" || $(Configuration) ~= \"CI_\") {\r\n #[var numSBE = #[var numSBE].#[var revBuild]]\r\n}]\r\n#[File replace.Regexp(\"#[var pDir]/source.extension.vsixmanifest\", \"<Version>[0-9\\.]+</Version>\", \"<Version>#[var numSBE]</Version>\")]"
}
},
{
"Enabled": true,
"Name": "VerProjects",
"Caption": "Versions for subprojects",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[\" TODO: functions or templates (with delay of the evaluation)\r\n\r\n currently it's can be like this:\r\n\r\n #[var template =\r\n ##[var box = \r\n #[var cs = $$(...)]\r\n ]\r\n ]\r\n #[var eval = #[var template]]\r\n \r\n however... inconvenient, not useful and unstable (not for all cases) ...\r\n\"]\r\n\r\n#[\"\r\n Updating version for 'Bridge'.\r\n\"]\r\n\r\n#[var cs = $(csVersion.Replace(%Version%, \"$(num0Bridge.Replace(\".\", \", \")), $(revBuild)\").Replace(%namespace%, \".Bridge\"))]\r\n#[var cs = $(cs.Replace(%VersionRevString%, \"$(num0Bridge).$(revBuild)\").Replace(%VersionString%, \"$(num0Bridge)\"))]\r\n#[File write(\"#[var pDirBridge]Version.cs\"):#[var cs]]\r\n\r\n#[\"\r\n Updating version for 'CI.MSBuild'.\r\n\"]\r\n\r\n#[var cs = $(csVersion.Replace(%Version%, \"$(num0CIM.Replace(\".\", \", \")), $(revBuild)\").Replace(%namespace%, \".CI.MSBuild\"))]\r\n#[var cs = $(cs.Replace(%VersionRevString%, \"$(num0CIM).$(revBuild)\").Replace(%VersionString%, \"$(num0CIM)\"))]\r\n#[File write(\"#[var pDirCIM]Version.cs\"):#[var cs]]\r\n\r\n#[\"\r\n Updating version for 'Devenv'.\r\n\"]\r\n\r\n#[var cs = $(csVersion.Replace(%Version%, \"$(num0Devenv.Replace(\".\", \", \")), $(revBuild)\").Replace(%namespace%, \".Devenv\"))]\r\n#[var cs = $(cs.Replace(%VersionRevString%, \"$(num0Devenv).$(revBuild)\").Replace(%VersionString%, \"$(num0Devenv)\"))]\r\n#[File write(\"#[var pDirDevenv]Version.cs\"):#[var cs]]\r\n\r\n#[\"\r\n Updating version for 'Provider'.\r\n\"]\r\n\r\n#[var cs = $(csVersion.Replace(%Version%, \"$(num0Provider.Replace(\".\", \", \")), $(revBuild)\").Replace(%namespace%, \".Provider\"))]\r\n#[var cs = $(cs.Replace(%VersionRevString%, \"$(num0Provider).$(revBuild)\").Replace(%VersionString%, \"$(num0Provider)\"))]\r\n#[File write(\"#[var pDirProvider]Version.cs\"):#[var cs]]"
}
}
],
"PostBuild": [
{
"Enabled": true,
"Name": "Tests",
"Caption": "Run all tests for release configurations",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": [
{
"Project": "vsSolutionBuildEvent",
"Order": "after"
}
]
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[($([System.Convert]::ToInt32(\"$(VisualStudioVersion.Replace('.', ''))\")) < 120) {\r\n #[($(Configuration) ^= \"Release\" && !$(Configuration) ^= \"CI_\") {\r\n #[DTE exec: Test.RunAllTestsInSolution]\r\n }]\r\n}]"
}
},
{
"Enabled": true,
"Name": "Definitions",
"Caption": "Definitions for POST",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[var appzip = $(SolutionDir)bin/7z/7za.exe]\r\n#[var odir = $(SolutionDir)bin/Releases/]\r\n#[var cfg = #[($(Configuration) ~= \"Release\"){Release}else{Debug}]]\r\n#[var cfgFull = $(Configuration)]\r\n#[var vsixLib = $(SolutionDir)VsixLib\\bin\\]\r\n#[var CIMLib = $(SolutionDir)CIMLib\\bin\\]\r\n\r\n#[var netStamp = net$(TargetFrameworkVersion.Replace(\".\", \"\").Replace(\"v\", \"\"))]\r\n#[var netVerString = $(TargetFrameworkVersion)#[($(TargetFrameworkVersion) != v4.0){ (be careful - need a v4.0 to compatibility with VS2010)}]]\r\n\r\n#[File sout(\"cmd\", \"/C mkdir \\\"#[var odir]\\\" 2>&1\")]\r\n#[File sout(\"cmd\", \"/C del /F/Q \\\"#[var odir]\\\" 2>&1\")]"
}
},
{
"Enabled": true,
"Name": "ReleaseNotes",
"Caption": "Release notes",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[File write(\"#[var odir]/Release_notes.txt\"):This assembled from:\r\n\r\n* Configuration: '#[var cfgFull]' (Folders: #[var cfg])\r\n* .NET version: #[var netVerString];\r\n* Build number: #[var revBuild];\r\n* Branch Sha1: #[var branchSha1];\r\n* Branch Name: #[var branchName];\r\n* Branch revCount: #[var branchRevCount];\r\n------------------------------------------\r\n\r\nVersions:\r\n\r\n* The 'Bridge': v#[var numBridge];\r\n* The 'CI.MSBuild': v#[var numCIM];\r\n* The 'Devenv': v#[var numDevenv];\r\n* The 'Provider': v#[var numProvider];\r\n* The 'vsSolutionBuildEvent': v#[var numSBE];\r\n\r\nDemo:\r\n\r\n* ClientDemo - [#[var branchSha1]][#[var netStamp]](#[var revBuild])\r\n\r\n------------------------------------------\r\n\\t\\t\\t\\t\\t Generated by vsSolutionBuildEvent\r\n]"
}
},
{
"Enabled": true,
"Name": "PackBridge",
"Caption": "Pack 'Bridge'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[File sout(\"cmd\", \"/C cd \\\"#[var pDirBridge]bin/#[var cfg]/\\\" & \\\"#[var appzip]\\\" a \\\"#[var odir]Bridge_v#[var numBridge]_[#[var branchSha1]][#[var netStamp]].zip\\\" Bridge.dll Bridge.pdb\")]"
}
},
{
"Enabled": true,
"Name": "PackCIMSBuild",
"Caption": "Pack 'CI.MSBuild'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[File sout(\"cmd\", \"/C cd \\\"#[var pDirCIM]bin/#[var cfg]/\\\" & \\\"#[var appzip]\\\" a \\\"#[var odir]CI.MSBuild_v#[var numCIM]_[#[var branchSha1]][#[var netStamp]].zip\\\" Bridge.dll Bridge.pdb Provider.dll Provider.pdb CI.MSBuild.dll CI.MSBuild.pdb\")]"
}
},
{
"Enabled": true,
"Name": "PackDevenv",
"Caption": "Pack 'Devenv'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[var _DP = $(SolutionDir)$(pDirDevenv)bin\\#[var cfg]\\]\r\n\r\n#[IO cmd(\"del /F/Q \\\"#[var _DP]\\Devenv\\\" 2>&1\")]\r\n#[IO cmd(\"cd \\\"#[var _DP]\\\" & for %f in (Bridge.dll,Bridge.pdb,Devenv.dll,Devenv.pdb,Provider.dll,Provider.pdb) do xcopy %f Devenv\\ /Y/R/I\")]\r\n#[IO cmd(\"cd \\\"#[var _DP]\\\" & xcopy Extensibility.dll Devenv\\ /Y/R/I 2>&1\")]\r\n\r\n#[IO cmd(\"cd \\\"#[var _DP]/\\\" & \\\"#[var appzip]\\\" a \\\"#[var odir]Devenv_v#[var numDevenv]_[#[var branchSha1]][#[var netStamp]].zip\\\" Devenv.AddIn Devenv/*.*\")]"
}
},
{
"Enabled": true,
"Name": "PackProvider",
"Caption": "Pack 'Provider'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[File sout(\"cmd\", \"/C cd \\\"#[var pDirProvider]bin/#[var cfg]/\\\" & \\\"#[var appzip]\\\" a \\\"#[var odir]Provider_v#[var numProvider]_[#[var branchSha1]][#[var netStamp]].zip\\\" Bridge.dll Bridge.pdb Provider.dll Provider.pdb\")]"
}
},
{
"Enabled": true,
"Name": "PackVSSBE",
"Caption": "Pack 'vsSBE'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[File sout(\"cmd\", \"/C copy \\\"#[var pDir]bin\\#[var cfg]\\vsSolutionBuildEvent.vsix\\\" \\\"#[var odir]vsSolutionBuildEvent_v#[var numSBE]_[#[var branchSha1]][#[var netStamp]].vsix\\\" /Y/V/B\")]"
}
},
{
"Enabled": false,
"Name": "VerCIMPrompt",
"Caption": "Gets next number for package from official nuget server",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": true,
"ToConfiguration": [
"Release_with_revision|Any CPU",
"Release_with_revision|Mixed Platforms",
"Release_with_revision|x86",
"Release|Any CPU",
"Release|Mixed Platforms",
"Release|x86"
],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[($(Configuration) ~= \"Release\" && !$(Configuration) ~= \"CI_\") {\r\n #[var numCIMPackage = $([MSBuild]::Add(#[File sout(\"cmd\", \"/C .nuget\\nuget.exe list vsSBE.CI.MSBuild | grep 'vsSBE.CI.MSBuild' | sed -r 's/^.*\\s[0-9]+\\.[0-9]+\\.//'\")], 1))]\r\n}\r\nelse{\r\n #[var numCIMPackage = 0]\r\n}]"
}
},
{
"Enabled": true,
"Name": "NuGetCIM",
"Caption": "NuGet pack - CI.MSBuild",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[var tplNuspecCIM = #[File get(\"vsSBE.CI.MSBuild.nuspec.tpl\")]]\r\n#[var nupCIMdir = $(odir)NuGet-CI.MSBuild-package]\r\n\r\n#[File sout(\"cmd\", \"/C mkdir \\\"#[var nupCIMdir]\\\" 2>&1\")]\r\n#[File sout(\"cmd\", \"/C del /F/Q \\\"#[var nupCIMdir]\\\" & del /F/Q \\\"#[var nupCIMdir]\\bin\\\" 2>&1\")]\r\n\r\n#[var nuspecCIM = $(tplNuspecCIM.Replace(%CIMVersion%, \"$(numCIM)\").Replace(%PackageVersion%, \"\").Replace(%vsSBEVersion%, \"$(numSBE)\"))]\r\n#[File write(\"#[var nupCIMdir]\\vsSBE.CI.MSBuild.nuspec\"):#[var nuspecCIM]]\r\n\r\n#[\" files for package \"]\r\n\r\n#[File cmd(\"cd \\\"#[var CIMLib]\\\" & xcopy *.dll \\\"#[var nupCIMdir]\\bin\\\" /Y/R/I\")]#[\" CIMLib custom \"]\r\n\r\n#[\" vsix dir \"]\r\n#[File cmd(\"cd \\\"#[var pDir]bin/#[var cfg]/\\\" & xcopy *.dll \\\"#[var nupCIMdir]\\bin\\\" /Y/R/I\")]\r\n#[File cmd(\"cd \\\"#[var pDirCIM]bin/#[var cfg]/\\\" & xcopy *.dll \\\"#[var nupCIMdir]\\bin\\\" /Y/R/I\")]\r\n#[File scall(\".nuget\\nuget.exe\", \"pack \\\"#[var nupCIMdir]\\vsSBE.CI.MSBuild.nuspec\\\" -OutputDirectory \\\"#[var nupCIMdir]\\..\\\" -NonInteractive -Verbosity quiet\")]\r\n\r\n#[File sout(\"cmd\", \"/C rmdir /S/Q \\\"#[var nupCIMdir]\\\" 2>&1\")]"
}
},
{
"Enabled": true,
"Name": "PackClientDemo",
"Caption": "Pack 'ClientDemo'",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": true,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": [],
"ExecutionOrder": {
"$type": "net.r_eg.vsSBE.Events.ExecutionOrder[], vsSolutionBuildEvent",
"$values": []
},
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent",
"Type": "script",
"Command": "#[var clientDemoDir = ClientDemo/bin/#[var cfg]/]\r\n#[File sout(\"cmd\", \"/C cd \\\"#[var clientDemoDir]\\\" & \\\"#[var appzip]\\\" a \\\"#[var odir]ClientDemo_[#[var branchSha1]][#[var netStamp]](#[var revBuild]).zip\\\" Bridge.dll Bridge.pdb client.vssbe.dll client.vssbe.pdb\")]"
}
}
],
"CancelBuild": [
{
"Enabled": false,
"Name": "Act1",
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeInterpreter, vsSolutionBuildEvent",
"Type": "interpreter",
"Command": "",
"Handler": "",
"Newline": "",
"Wrapper": ""
}
}
],
"WarningsBuild": [
{
"Codes": [],
"IsWhitelist": true,
"Enabled": false,
"Name": "Act1",
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeInterpreter, vsSolutionBuildEvent",
"Type": "interpreter",
"Command": "",
"Handler": "",
"Newline": "",
"Wrapper": ""
}
}
],
"ErrorsBuild": [
{
"Codes": [],
"IsWhitelist": true,
"Enabled": false,
"Name": "Act1",
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeInterpreter, vsSolutionBuildEvent",
"Type": "interpreter",
"Command": "",
"Handler": "",
"Newline": "",
"Wrapper": ""
}
}
],
"OWPBuild": [
{
"Match": null,
"Enabled": false,
"Name": "Act1",
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeInterpreter, vsSolutionBuildEvent",
"Type": "interpreter",
"Command": "",
"Handler": "",
"Newline": "",
"Wrapper": ""
}
}
],
"Transmitter": [
{
"Enabled": false,
"Name": "Act1",
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeInterpreter, vsSolutionBuildEvent",
"Type": "interpreter",
"Command": "",
"Handler": "",
"Newline": "",
"Wrapper": ""
}
}
],
"CommandEvent": [
{
"Filters": null,
"Enabled": false,
"Name": null,
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": true,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeFile, vsSolutionBuildEvent",
"Type": "file",
"Command": ""
}
}
],
"Logging": [
{
"Enabled": false,
"Name": null,
"Caption": "",
"SupportMSBuild": true,
"SupportSBEScripts": true,
"IgnoreIfBuildFailed": false,
"BuildType": "common",
"Confirmation": false,
"ToConfiguration": null,
"ExecutionOrder": null,
"Process": {
"$type": "net.r_eg.vsSBE.Events.EventProcess, vsSolutionBuildEvent",
"Waiting": false,
"Hidden": true,
"TimeLimit": 30
},
"Mode": {
"$type": "net.r_eg.vsSBE.Events.ModeFile, vsSolutionBuildEvent",
"Type": "file",
"Command": ""
}
}
]
}