Skip to content

Commit df16bb6

Browse files
committed
Validate signing for all target frameworks
1 parent 19999cd commit df16bb6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: build/scripts/Releasing.fsx

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ type Release() =
130130

131131
// re-zip package
132132
ZipHelper.Zip unzippedDir package !!(sprintf "%s/**/*.*" unzippedDir)
133+
DeleteDir unzippedDir
133134

134135
// move to nuget output
135136
MoveFile Paths.NugetOutput package

Diff for: build/scripts/Signing.fsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ type Sign() =
5252
for p in DotNetProject.All do
5353
let name = p.ProjectName.Nuget
5454
let outputFolder = Paths.Output(name)
55-
let dotnet51 = sprintf "%s/dotnet5.1/%s.dll" outputFolder name
56-
let net45dll = sprintf "%s/net45/%s.dll" outputFolder name
5755
match p with
5856
| Project p ->
59-
validate dotnet51 name
60-
validate net45dll name
57+
(outputFolder |> directoryInfo).GetDirectories()
58+
|> Seq.iter(fun frameworkDir ->
59+
let frameworkName = frameworkDir.Name
60+
let dll = sprintf "%s/%s/%s.dll" outputFolder frameworkName name
61+
if fileExists dll then validate dll name
62+
)
6163

6264
static member CreateKeysIfAbsent() =
6365
if not (directoryExists Paths.KeysFolder) then CreateDir Paths.KeysFolder

0 commit comments

Comments
 (0)