BooC.App.CheckBooCompiler C# (CSharp) Method

CheckBooCompiler() private method

private CheckBooCompiler ( ) : void
return void
        void CheckBooCompiler()
        {
            string path = Path.Combine(Path.GetDirectoryName(
                        Assembly.GetExecutingAssembly().Location),
                    "Boo.Lang.Compiler.dll");
            if (File.Exists(path))
            {
                foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
                {
                    if (a.FullName.StartsWith("Boo.Lang.Compiler"))
                    {
                        if (string.Compare(a.Location, path, true) != 0)
                        {
                            //can't use ResourceManager, boo.lang.dll may be out of date
                            string msg=string.Format("WARNING: booc is not using the Boo.Lang.Compiler.dll next to booc.exe.  Using '{0}' instead of '{1}'.  You may need to remove boo dlls from the GAC using gacutil or Mscorcfg.",
                                    a.Location, path);
                            //has to be all 1 line for things like msbuild that parse booc output.
                            Console.Error.WriteLine(msg);
                        }
                        break;
                    }
                }
            }
        }