public int CheckInPackages(FileInfo filename)
        {
            try
            {
                VersionManager.Version v = new VersionManager.Version();
                string path = HostingEnvironment.MapPath("~/Repository Server");

                int ver = v.GetPackageVersion(path, filename);
                return ver;
            }
            catch
            {
                return 1;
            }
        }
        static void Main(string[] args)
        {
            Console.WriteLine("================================");
            Console.WriteLine("    Testing VERSION MANAGER ");
            Console.WriteLine("================================\n");
            DirectoryInfo di;
            Version v = new Version();
            v.setTestDir("../../Test");
            if (!Directory.Exists(v.getTestDir()))
            di = Directory.CreateDirectory(v.getTestDir());
            else
            di = new DirectoryInfo(v.getTestDir());

            FileInfo f = new FileInfo("../../Version.cs");
            Console.WriteLine();
            FileInfo[] files = di.GetFiles();
            foreach (FileInfo file in files)
            {
            Console.WriteLine("Processing File :{0} for version Number", file.Name);
            int ver=v.GetPackageVersion(v.getTestDir(), file);
            Console.WriteLine();
            Console.WriteLine("File{0} is Version {1}", file.Name, ver);
            Console.WriteLine("---------------------------------------------");
            }
        }