因此,当我尝试构建以部署到物理设备时,我的 iPhone MonoTouch 应用程序会引发以下错误。
Error MT2002: Could not resolve: System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (MT2002) (IcondySingleView)
它在模拟器中完美运行。
对 system.configuration 的引用位于 dll 中。
我在编译期间也有这个警告,MYModel.dll 包含对 system.configuration 的依赖项。
Warning MT0011: MYModel.dll was built against a more recent runtime (NET_4_0) than MonoTouch supports. (MT0011) (IcondySingleView)
为什么它会在模拟器中构建和运行,而不是在设备的部署中。我可以在某处进行相同的设置吗?