File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 33
33
<OutputPath Condition =" '$(OutputPathBaseDir)' != ''" >$(OutputPathBaseDir)\$(MSBuildProjectName)\</OutputPath >
34
34
<SolutionRoot >$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.bat))</SolutionRoot >
35
35
36
+ <DisableImplicitNuGetFallbackFolder >true</DisableImplicitNuGetFallbackFolder >
37
+ <RestoreLockedMode >true</RestoreLockedMode >
36
38
<RestorePackagesWithLockFile >true</RestorePackagesWithLockFile >
37
39
38
40
<DefineConstants Condition =" '$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net472'" >$(DefineConstants);FULLFRAMEWORK</DefineConstants >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ open System.IO.Compression
19
19
20
20
module Build =
21
21
22
- let Restore () = DotNet.Exec [ " restore" ; Paths.Solution; ] |> ignore
22
+ let Restore () = DotNet.Exec [ " restore" ; Paths.Solution; ] |> ignore
23
23
24
24
let Compile _ version =
25
25
let props =
Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ module Main =
63
63
conditional " clean" parsed.ReleaseBuild <| fun _ -> Build.Clean parsed
64
64
target " version" <| fun _ -> printfn " Artifacts Version: %O " artifactsVersion
65
65
66
- target " restore" Build.Restore
67
-
66
+ target " restore" Build.Restore
68
67
target " full-build" <| fun _ -> Build.Compile parsed artifactsVersion
69
68
70
69
//TEST
@@ -95,8 +94,8 @@ module Main =
95
94
Fake.IO.Shell.cp_ r Paths.BuildOutput path
96
95
printfn " Finished Release Build %O , output copied to: %s " artifactsVersion path
97
96
98
- conditional " test-nuget-package" ( not parsed.SkipTests) <| fun _ -> Tests.RunReleaseUnitTests artifactsVersion parsed
99
-
97
+ conditional " test-nuget-package" ( not parsed.SkipTests) <| fun _ -> Tests.RunReleaseUnitTests artifactsVersion parsed
98
+
100
99
//CANARY
101
100
command " canary" canaryChain <| fun _ -> printfn " Finished Release Build %O " artifactsVersion
102
101
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ module Tests =
70
70
//package and not one from cache...y
71
71
Environment.setEnvironVar " TestPackageVersion" ( version.Full.ToString())
72
72
Tooling.DotNet.ExecIn " tests/Tests" [ " clean" ;] |> ignore
73
- Tooling.DotNet.ExecIn " tests/Tests" [ " restore" ;] |> ignore
73
+ // needs forced eval because it picks up local nuget packages not part of package.lock.json
74
+ Tooling.DotNet.ExecIn " tests/Tests" [ " restore" ; " --force-evaluate" ] |> ignore
74
75
dotnetTest " tests/Tests/Tests.csproj" args
75
76
76
77
let RunUnitTests args =
You can’t perform that action at this time.
0 commit comments