Resources中未包含。。。的定义

在移植C#的KINECT例程时,只要更改.NET的版本就会提示我“Resources中未包含。。。的定义“甚是疑问,但还好找到了解决方法。

打开原版例程定位Resources,发现里面少了几个定义,现在还是不知道什么会少

全部内容如下,做下记录,方便以后直接粘贴复制

//——————————————————————————  
// <auto-generated>  
//     此代码由工具生成。  
//     运行时版本:4.0.30319.42000  
//  
//     对此文件的更改可能会导致不正确的行为,并且如果  
//     重新生成代码,这些更改将会丢失。  
// </auto-generated>  
//——————————————————————————  
   

namespace DotionDebug.Properties {  
    using System;  
      

      

    /// <summary>  
    ///   一个强类型的资源类,用于查找本地化的字符串等。  
    /// </summary>  
    // 此类是由 StronglyTypedResourceBuilder  
    // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。  
    // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen  
    // (以 /str 作为命令选项),或重新生成 VS 项目。  
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Resources.Tools.StronglyTypedResourceBuilder”, “4.0.0.0”)]  
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]  
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]  
    internal class Resources {  
          

        private static global::System.Resources.ResourceManager resourceMan;  
          

        private static global::System.Globalization.CultureInfo resourceCulture;  
          

        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute(“Microsoft.Performance”, “CA1811:AvoidUncalledPrivateCode”)]  
        internal Resources() {  
        }  
          

        /// <summary>  
        ///   返回此类使用的缓存的 ResourceManager 实例。  
        /// </summary>  
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]  
        internal static global::System.Resources.ResourceManager ResourceManager {  
            get {  
                if (object.ReferenceEquals(resourceMan, null)) {  
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager(“DotionDebug.Properties.Resources”, typeof(Resources).Assembly);  
                    resourceMan = temp;  
                }  
                return resourceMan;  
            }  
        }  
          

        /// <summary>  
        ///   使用此强类型资源类,为所有资源查找  
        ///   重写当前线程的 CurrentUICulture 属性。  
        /// </summary>  
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]  
        internal static global::System.Globalization.CultureInfo Culture {  
            get {  
                return resourceCulture;  
            }  
            set {  
                resourceCulture = value;  
            }  
        }  
        /// <summary>  
        ///   查找类似 Failed to write screenshot to {0} 的本地化字符串。  
        /// </summary>  
        internal static string FailedScreenshotStatusTextFormat  
        {  
            get  
            {  
                return ResourceManager.GetString(“FailedScreenshotStatusTextFormat”, resourceCulture);  
            }  
        }  
   

        /// <summary>  
        ///   查找类似 No ready Kinect found! 的本地化字符串。  
        /// </summary>  
        internal static string NoSensorStatusText  
        {  
            get  
            {  
                return ResourceManager.GetString(“NoSensorStatusText”, resourceCulture);  
            }  
        }  
   

        /// <summary>  
        ///   查找类似 Running 的本地化字符串。  
        /// </summary>  
        internal static string RunningStatusText  
        {  
            get  
            {  
                return ResourceManager.GetString(“RunningStatusText”, resourceCulture);  
            }  
        }  
   

        /// <summary>  
        ///   查找类似 Kinect not available! 的本地化字符串。  
        /// </summary>  
        internal static string SensorNotAvailableStatusText  
        {  
            get  
            {  
                return ResourceManager.GetString(“SensorNotAvailableStatusText”, resourceCulture);  
            }  
        }  
    }  
}  

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值