silverlight版本更新问题求助
Private Function CheckNeedDownload() As Boolean Dim store As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication() Dim path As String = System.IO.Path.Combine(strCacheDirectory, strCacheXap) '检查需要下载的文件在当前缓存区域是否已经存在 If store.DirectoryExists(strCacheDirectory) = False Or store.FileExists(path) = False Then Return True Else Dim stream As IsolatedStorageFileStream = store.OpenFile(path, FileMode.Open, FileAccess.Read) If stream.Length.Equals(g_NewXapSize + 1) = False Then stream.Close() ClearExternalXapCache() Return True Else stream.Close() Return False 'False 2012-2-22 zfy 由False改为True 不检查Xap包大小,直接下载 End If End If End Function