Added mono detection for provided types
This commit is contained in:
Родитель
741d344d34
Коммит
0a4fee1aee
|
@ -26,6 +26,7 @@ type internal ExpectedStackState =
|
|||
|
||||
[<AutoOpen>]
|
||||
module internal Misc =
|
||||
let runningOnMono = try System.Type.GetType("Mono.Runtime") <> null with e -> false
|
||||
let TypeBuilderInstantiationType =
|
||||
if runningOnMono
|
||||
then typeof<TypeBuilder>.Assembly.GetType("System.Reflection.MonoGenericClass")
|
||||
|
|
|
@ -229,7 +229,7 @@ type iOSDesignerProvider(config: TypeProviderConfig) as this =
|
|||
viewControllerType
|
||||
|
||||
do rootType.DefineStaticParameters([ProvidedStaticParameter("DesignerFile", typeof<string>)], buildTypes)
|
||||
do this.AddNamespace(ns, [rootType])
|
||||
this.AddNamespace(ns, [rootType])
|
||||
|
||||
interface IDisposable with
|
||||
member x.Dispose() =
|
||||
|
|
Загрузка…
Ссылка в новой задаче