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_? –