diff --git a/Directory.Build.props b/Directory.Build.props index 250616a..86cbe70 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 1.8.0-beta + 1.8.0-beta.1 \ No newline at end of file diff --git a/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip b/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip index 3bbd734..53af646 100644 Binary files a/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip and b/ricaun.RevitTest.Console/Resources/ricaun.RevitTest.Application.bundle.zip differ diff --git a/ricaun.RevitTest.Console/ricaun.RevitTest.Console.csproj b/ricaun.RevitTest.Console/ricaun.RevitTest.Console.csproj index b5c2c29..fc82400 100644 --- a/ricaun.RevitTest.Console/ricaun.RevitTest.Console.csproj +++ b/ricaun.RevitTest.Console/ricaun.RevitTest.Console.csproj @@ -47,7 +47,7 @@ - + diff --git a/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip b/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip index 2e8617d..ea9b17e 100644 Binary files a/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip and b/ricaun.RevitTest.TestAdapter/Resources/net48/ricaun.RevitTest.Console.zip differ diff --git a/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip b/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip index 05d212b..d49fd02 100644 Binary files a/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip and b/ricaun.RevitTest.TestAdapter/Resources/net8.0-windows/ricaun.RevitTest.Console.zip differ diff --git a/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs b/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs index af1cb93..2fa11d9 100644 --- a/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs +++ b/ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs @@ -166,42 +166,6 @@ private static bool LocalFileExists(string filePath, out string localFilePath) return false; } - /// - /// Download and unzip Application Async - /// - /// Folder of the Application - /// - /// - /// - private static async Task DownloadAsyncWeb(string applicationFolder, string address, Action downloadFileException = null) - { - var fileName = Path.GetFileName(address); - var zipPath = Path.Combine(applicationFolder, fileName); - var result = false; - -#pragma warning disable SYSLIB0014 // Type or member is obsolete - using (var client = new WebClient()) - { - System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12; - client.Headers[HttpRequestHeader.UserAgent] = nameof(ApplicationUtils); - try - { - await client.DownloadFileTaskAsync(new Uri(address), zipPath); - ExtractZipToDirectory(zipPath, applicationFolder); - result = true; - } - catch (Exception ex) - { - downloadFileException?.Invoke(ex); - } - if (Path.GetExtension(zipPath) == ZIP_FILE_EXTENSION) - if (File.Exists(zipPath)) File.Delete(zipPath); - } -#pragma warning restore SYSLIB0014 // Type or member is obsolete - - return result; - } - /// /// ExtractToDirectory with overwrite enable ///