【发布时间】:2017-07-18 14:50:09
【问题描述】:
我有一个共享项目和一个 iOS、Android 和控制台项目。
我有一个在共享项目中调用 AppConfig.fs 的 DbClient.fs,但是如果我编译 iOS 或 Android 项目,我会得到:
../DbClient.fs(39,39): Error FS0039: The value, namespace, type or module 'AppConfig' is not defined. Maybe you want one of the following: Config AppContext (FS0039) (Cobros.Droid)
这是代码示例:
DbClient.fs
module DbClient
..
..
let _buildDeb(con, deuda:DebtRecord, after:Int64) =
let cobro = Zone.queryByName(AppConfig.defaultZone())
AppConfig.fs
module AppConfig
open Plugin.Settings
open Plugin.Settings.Abstractions
...
let defaultZone() =
read("zone", "Sample").ToUpper()
【问题讨论】:
-
DbClient和AppConfig在同一个项目中,如果是,顺序是否正确? -
在同一个项目中。共享项目不允许更改顺序。
-
AppConfig是 beforeDbClient还是 after?
标签: xamarin f# xamarin.forms visual-studio-mac