Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Dec 16, 2024
1 parent da8f89c commit 1a78ac8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.8.0-beta</Version>
<Version>1.8.0-beta.1</Version>
</PropertyGroup>
</Project>
Binary file not shown.
2 changes: 1 addition & 1 deletion ricaun.RevitTest.Console/ricaun.RevitTest.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ricaun.Revit.Installation" Version="*" />
<PackageReference Include="ricaun.Revit.Installation" Version="*-*" />
<PackageReference Include="ricaun.RevitAPI.Fake.References.RevitAPIUI" Version="*" />
<PackageReference Include="Microsoft.VisualStudio.Interop" Version="*" />
</ItemGroup>
Expand Down
Binary file not shown.
Binary file not shown.
36 changes: 0 additions & 36 deletions ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,42 +166,6 @@ private static bool LocalFileExists(string filePath, out string localFilePath)
return false;
}

/// <summary>
/// Download and unzip Application Async
/// </summary>
/// <param name="applicationFolder">Folder of the Application</param>
/// <param name="address"></param>
/// <param name="downloadFileException"></param>
/// <returns></returns>
private static async Task<bool> DownloadAsyncWeb(string applicationFolder, string address, Action<Exception> 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;
}

/// <summary>
/// ExtractToDirectory with overwrite enable
/// </summary>
Expand Down

0 comments on commit 1a78ac8

Please sign in to comment.