@@ -168,7 +168,7 @@ type ReflectionDependencyManagerProvider
168168 let keyProperty ( x : objnull ) = x |> keyProperty.GetValue |> string
169169
170170 let helpMessagesProperty ( x : objnull ) =
171- let toStringArray ( o : objnull ) = o :?> string[]
171+ let toStringArray ( o : objnull ) = !! o :?> string[]
172172
173173 match helpMessagesProperty with
174174 | Some helpMessagesProperty -> x |> helpMessagesProperty.GetValue |> toStringArray
@@ -334,31 +334,31 @@ type ReflectionDependencyManagerProvider
334334 member _.StdOut =
335335 match getInstanceProperty< string[]> ( result.GetType()) " StdOut" with
336336 | None -> [||]
337- | Some p -> p.GetValue( result) :?> string []
337+ | Some p -> !! p.GetValue( result) :?> string []
338338
339339 /// The resolution error log (* process stderror *)
340340 member _.StdError =
341341 match getInstanceProperty< string[]> ( result.GetType()) " StdError" with
342342 | None -> [||]
343- | Some p -> p.GetValue( result) :?> string []
343+ | Some p -> !! p.GetValue( result) :?> string []
344344
345345 /// The resolution paths
346346 member _.Resolutions =
347347 match getInstanceProperty< seq< string>> ( result.GetType()) " Resolutions" with
348348 | None -> Seq.empty< string>
349- | Some p -> p.GetValue( result) :?> seq < string >
349+ | Some p -> !! p.GetValue( result) :?> seq < string >
350350
351351 /// The source code file paths
352352 member _.SourceFiles =
353353 match getInstanceProperty< seq< string>> ( result.GetType()) " SourceFiles" with
354354 | None -> Seq.empty< string>
355- | Some p -> p.GetValue( result) :?> seq < string >
355+ | Some p -> !! p.GetValue( result) :?> seq < string >
356356
357357 /// The roots to package directories
358358 member _.Roots =
359359 match getInstanceProperty< seq< string>> ( result.GetType()) " Roots" with
360360 | None -> Seq.empty< string>
361- | Some p -> p.GetValue( result) :?> seq < string >
361+ | Some p -> !! p.GetValue( result) :?> seq < string >
362362 }
363363
364364 static member MakeResultFromFields
@@ -473,8 +473,8 @@ type ReflectionDependencyManagerProvider
473473 match tupleFields |> Array.length with
474474 | 3 ->
475475 tupleFields[ 0 ] :?> bool,
476- tupleFields[ 1 ] :?> string list |> List.toSeq,
477- tupleFields[ 2 ] :?> string list |> List.distinct |> List.toSeq
476+ !! tupleFields[ 1 ] :?> string list |> List.toSeq,
477+ !! tupleFields[ 2 ] :?> string list |> List.distinct |> List.toSeq
478478 | _ -> false , seqEmpty, seqEmpty
479479
480480 ReflectionDependencyManagerProvider.MakeResultFromFields( success, [||], [||], Seq.empty, sourceFiles, packageRoots)
0 commit comments