示例#1
0
        public virtual UpdateInfo GetUpdateInfo()
        {
            var absolutePath = UpdateInfoFile;

            if (absolutePath != null && !absolutePath.IsAbsolute)
            {
#if MAC
                // relative paths are relative the bundle root
                FilePath bundlePath = Foundation.NSBundle.MainBundle.BundlePath;
                absolutePath = bundlePath.Combine(UpdateInfoFile);
#endif
            }

            if (File.Exists(absolutePath))
            {
                return(UpdateInfo.FromFile(absolutePath));
            }

            return(null);
        }