Monotouch 3.99:设计器文件中缺少使用?

时间:2011-03-30 01:32:20

标签: iphone xamarin.ios monodevelop

Monotouch 3.99.13

当我在Interface Builder中编辑XIB时,Monotouch无法将所有Usings添加到它生成的designer.cs文件中。没有制作部分杂物。

enter image description here

这是一个代码片段(注意没有使用):

// ------------------------------------------------------------------------------
//  <autogenerated>
//      This code was generated by a tool.
//      Mono Runtime Version: 2.0.50727.1433
// 
//      Changes to this file may cause incorrect behavior and will be lost if 
//      the code is regenerated.
//  </autogenerated>
// ------------------------------------------------------------------------------

namespace General {


    // Base type probably should be MonoTouch.Foundation.NSObject or subclass
    [MonoTouch.Foundation.Register("AppDelegateIPad")]
    public partial class AppDelegateIPad {

        private UIWindow __mt_window;

        #pragma warning disable 0169
        [MonoTouch.Foundation.Connect("window")]
        private UIWindow window {
            get {
                this.__mt_window = ((UIWindow)(this.GetNativeField("window")));
                return this.__mt_window;
            }
            set {
                this.__mt_window = value;
                this.SetNativeField("window", value);
            }
        }
    }
}

1 个答案:

答案 0 :(得分:0)

有人将此作为最新MonoDevelop here中的错误提交。那是你吗?据我所知,MonoDevelop从未在设计器文件中生成使用语句。