1
我有一个共享项目和iOS,Android和控制台项目。错误FS0039:命名空间或模块'AppConfig'未在共享项目中定义xamarin
我有一个DbClient.fs调用共享项目中AppConfig.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'是否在同一个项目中,如果是,那么顺序是否正确? –
在同一个项目中。共享项目不允许更改订单。 – mamcx
'AppConfig'也是'_before_'DbClient'或_after_? –