@@ -9,8 +9,6 @@ public enum BranchType
9
9
10
10
public static class BuildParameters
11
11
{
12
- public static List < string > AllowedAssemblyNames { get ; private set ; }
13
- public static string AssemblyNamesRegexPattern { get ; private set ; }
14
12
public static BranchType BranchType { get ; private set ; }
15
13
public static PlatformFamily BuildAgentOperatingSystem { get ; private set ; }
16
14
public static string BuildCounter { get ; private set ; }
@@ -91,7 +89,6 @@ public static class BuildParameters
91
89
public static bool ShouldRunReportUnit { get ; private set ; }
92
90
public static bool ShouldRunTransifex { get ; set ; }
93
91
public static bool ShouldRunxUnit { get ; private set ; }
94
- public static bool ShouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken { get ; private set ; }
95
92
public static bool ShouldStrongNameOutputAssemblies { get ; private set ; }
96
93
public static bool ShouldStrongNameSignDependentAssemblies { get ; private set ; }
97
94
public static DirectoryPath SolutionDirectoryPath { get ; private set ; }
@@ -137,8 +134,6 @@ public static class BuildParameters
137
134
138
135
context . Information ( "Printing Build Parameters..." ) ;
139
136
context . Information ( "------------------------------------------------------------------------------------------" ) ;
140
- context . Information ( "AllowedAssemblyName: {0}" , string . Join ( ", " , AllowedAssemblyNames ) ) ;
141
- context . Information ( "AssemblyNamesRegexPattern: {0}" , AssemblyNamesRegexPattern ) ;
142
137
context . Information ( "BranchType: {0}" , BranchType ) ;
143
138
context . Information ( "BranchName: {0}" , BuildProvider . Repository . Branch ) ;
144
139
context . Information ( "BuildAgentOperatingSystem: {0}" , BuildAgentOperatingSystem ) ;
@@ -202,7 +197,6 @@ public static class BuildParameters
202
197
context . Information ( "ShouldRunReportUnit: {0}" , BuildParameters . ShouldRunReportUnit ) ;
203
198
context . Information ( "ShouldRunTransifex: {0}" , BuildParameters . ShouldRunTransifex ) ;
204
199
context . Information ( "ShouldRunxUnit: {0}" , BuildParameters . ShouldRunxUnit ) ;
205
- context . Information ( "ShouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken: {0}" , BuildParameters . ShouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken ) ;
206
200
context . Information ( "ShouldStrongNameOutputAssemblies: {0}" , BuildParameters . ShouldStrongNameOutputAssemblies ) ;
207
201
context . Information ( "ShouldStrongNameSignDependentAssemblies: {0}" , BuildParameters . ShouldStrongNameSignDependentAssemblies ) ;
208
202
context . Information ( "SolutionFilePath: {0}" , context . MakeAbsolute ( ( FilePath ) SolutionFilePath ) ) ;
@@ -231,8 +225,6 @@ public static class BuildParameters
231
225
BuildSystem buildSystem ,
232
226
DirectoryPath sourceDirectoryPath ,
233
227
string title ,
234
- List < string > allowedAssemblyNames = null ,
235
- string assemblyNamesRegexPattern = null ,
236
228
string certificateSubjectName = null ,
237
229
string developBranchName = "develop" ,
238
230
FilePath fullReleaseNotesFilePath = null ,
@@ -290,7 +282,6 @@ public static class BuildParameters
290
282
bool shouldRunReportUnit = true ,
291
283
bool ? shouldRunTransifex = null ,
292
284
bool shouldRunxUnit = true ,
293
- bool shouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken = false ,
294
285
bool shouldStrongNameOutputAssemblies = true ,
295
286
bool shouldStrongNameSignDependentAssemblies = true ,
296
287
DirectoryPath solutionDirectoryPath = null ,
@@ -330,8 +321,6 @@ public static class BuildParameters
330
321
BuildProvider = GetBuildProvider ( context , buildSystem ) ;
331
322
RootDirectoryPath = rootDirectoryPath ?? context . MakeAbsolute ( context . Environment . WorkingDirectory ) ;
332
323
333
- AllowedAssemblyNames = allowedAssemblyNames ?? new List < string > { "chocolatey.dll" , "chocolatey.licensed.dll" , "ChocolateyGui.Common.dll" , "ChocolateyGui.Common.Windows.dll" } ;
334
- AssemblyNamesRegexPattern = assemblyNamesRegexPattern ?? "chocolatey.lib|chocolatey-licensed.lib|ChocolateyGui.Common|ChocolateyGui.Common.Windows" ;
335
324
BuildAgentOperatingSystem = context . Environment . Platform . Family ;
336
325
BuildCounter = context . Argument ( "buildCounter" , BuildProvider . Build . Number ) ;
337
326
CakeConfiguration = context . GetConfiguration ( ) ;
@@ -400,11 +389,16 @@ public static class BuildParameters
400
389
ShouldRunNuGet = shouldRunNuGet ;
401
390
ShouldRunNUnit = shouldRunNUnit ;
402
391
ShouldRunOpenCover = shouldRunOpenCover ;
392
+
393
+ if ( context . HasArgument ( "shouldRunOpenCover" ) )
394
+ {
395
+ ShouldRunOpenCover = context . Argument < bool > ( "shouldRunOpenCover" ) ;
396
+ }
397
+
403
398
ShouldRunReportGenerator = shouldRunReportGenerator ;
404
399
ShouldRunReportUnit = shouldRunReportUnit ;
405
400
ShouldRunTransifex = shouldRunTransifex ?? TransifexIsConfiguredForRepository ( context ) ;
406
401
ShouldRunxUnit = shouldRunxUnit ;
407
- ShouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken = shouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken ;
408
402
ShouldStrongNameOutputAssemblies = shouldStrongNameOutputAssemblies ;
409
403
ShouldStrongNameSignDependentAssemblies = shouldStrongNameSignDependentAssemblies ;
410
404
SolutionDirectoryPath = solutionDirectoryPath ?? sourceDirectoryPath . Combine ( title ) ;
@@ -501,7 +495,7 @@ public static class BuildParameters
501
495
}
502
496
}
503
497
504
- if ( ShouldStrongNameOutputAssemblies || ShouldStrongNameSignDependentAssemblies || ShouldStrongNameChocolateyDependenciesWithCurrentPublicKeyToken )
498
+ if ( ShouldStrongNameOutputAssemblies || ShouldStrongNameSignDependentAssemblies )
505
499
{
506
500
var officialStrongNameKey = context . EnvironmentVariable ( "CHOCOLATEY_OFFICIAL_KEY" ) ;
507
501
var localUnofficialStrongNameKey = RootDirectoryPath . CombineWithFilePath ( "chocolatey.snk" ) . FullPath ;
0 commit comments