Skip to content

Commit 04e5607

Browse files
committed
skip release built validation on AppVeyor because Assembly.Load is not allowed
1 parent a6a84af commit 04e5607

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build/scripts/Targets.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ let private validatePackages (arguments:ParseResults<Arguments>) =
4848
let nugetPackages =
4949
Paths.Output.GetFiles("*.nupkg") |> Seq.sortByDescending(fun f -> f.CreationTimeUtc)
5050
|> Seq.map (fun p -> Paths.RootRelative p.FullName)
51+
52+
let appVeyorArgs =
53+
if Fake.Core.Environment.environVarAsBool "APPVEYOR" then ["-r"; "true"] else []
5154

52-
let args = ["-v"; currentVersionInformational.Value; "-k"; "96c599bbe3e70f5d"; "-t"; output]
55+
let args = ["-v"; currentVersionInformational.Value; "-k"; "96c599bbe3e70f5d"; "-t"; output] @ appVeyorArgs
5356
nugetPackages |> Seq.iter (fun p -> exec "dotnet" (["nupkg-validator"; p] @ args) |> ignore)
5457

5558

dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222
},
2323
"nupkg-validator": {
24-
"version": "0.3.0",
24+
"version": "0.3.1",
2525
"commands": [
2626
"nupkg-validator"
2727
]

0 commit comments

Comments
 (0)