Resources中未包含。。。的定义

来源:互联网 发布:网络暴力可以报警吗 编辑:程序博客网 时间:2024/04/29 21:18
在移植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);            }        }    }}

阅读全文
0 0
原创粉丝点击