Skip to content

Commit

Permalink
scripts/sanitycheck: also check nugets of non-main sols
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Nov 11, 2023
1 parent 89b3189 commit 7521744
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions scripts/sanitycheck.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ let FindOffendingPrintfUsage () =
Environment.Exit 1


let SanityCheckNugetPackages () =
let SanityCheckNugetPackages (solution: FileInfo) =
let conventionDirectory =
Path.Combine(FsxHelper.RootDir.FullName, "..", "conventions")

Expand Down Expand Up @@ -147,9 +147,7 @@ let SanityCheckNugetPackages () =
sprintf
"%s %s"
sanityCheckExecuteCommand
(FsxHelper.GetSolution SolutionFile.Default)
.FullName

solution.FullName

Process
.Execute(
Expand All @@ -162,6 +160,20 @@ let SanityCheckNugetPackages () =


FindOffendingPrintfUsage()

#if !LEGACY_FRAMEWORK
SanityCheckNugetPackages()

let mainSol = FsxHelper.GetSolution SolutionFile.Default
SanityCheckNugetPackages mainSol

match Misc.GuessPlatform() with
| Misc.Platform.Linux ->
FsxHelper.GetSolution SolutionFile.Linux
|> SanityCheckNugetPackages
| Misc.Platform.Mac ->
FsxHelper.GetSolution SolutionFile.Mac
|> SanityCheckNugetPackages
| _ ->
()

#endif

0 comments on commit 7521744

Please sign in to comment.