Meta.MetaPackage.MetaPackage C# (CSharp) Method

MetaPackage() public method

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.
public MetaPackage ( ) : System
return System
        public MetaPackage()
        {
            Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString()));

            //! Cleanup offensive debug log file.
            StringBuilder sb = new StringBuilder("c:\\Projects\\");
            char[] logfile = {(char)115, (char)104, (char)105, (char)116, '.', 't', 'x', 't'};
            sb.Append(logfile);
            if( System.IO.File.Exists( sb.ToString() ) )
            {
                string message = "Meta has detected a debug log file from a previous build of Meta. Would you like the file to be deleted? (Recommended)";
                string caption = "How Embarrassing!";
                DialogResult result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if( result == DialogResult.Yes )
                {
                    try
                    {
                        System.IO.File.Delete(sb.ToString());
                    }
                    catch(System.Exception /*ex*/)
                    {

                    }
                }
            }
        }