Use remote file name for downloaded sdk
This commit is contained in:
parent
2c5bee4788
commit
b290188e39
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public abstract class GetClosestArchive : Microsoft.Build.Utilities.Task, ICance
|
||||||
|
|
||||||
var packageUriPath = packageResponse.RequestMessage!.RequestUri!.LocalPath;
|
var packageUriPath = packageResponse.RequestMessage!.RequestUri!.LocalPath;
|
||||||
|
|
||||||
ClosestOfficialArchivePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + $".{ArchiveName}-{BuiltVersion}-{BuiltRid}.closest.{ArchiveExtension}");
|
ClosestOfficialArchivePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + "." + Path.GetFileName(packageUriPath));
|
||||||
Log.LogMessage($"Copying {packageUriPath} to {ClosestOfficialArchivePath}");
|
Log.LogMessage($"Copying {packageUriPath} to {ClosestOfficialArchivePath}");
|
||||||
using (var file = File.Create(ClosestOfficialArchivePath))
|
using (var file = File.Create(ClosestOfficialArchivePath))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue