diff --git a/samples/AzCopyCore/AzCopyCore/AzCopyCore.csproj b/samples/AzCopyCore/AzCopyCore/AzCopyCore.csproj index ae53bf9a84d..dd1bbc8eebb 100644 --- a/samples/AzCopyCore/AzCopyCore/AzCopyCore.csproj +++ b/samples/AzCopyCore/AzCopyCore/AzCopyCore.csproj @@ -3,9 +3,6 @@ Exe netcoreapp2.1 - 4.5.0-preview2-26213-06 0.1.0-preview2-180213-4 @@ -22,7 +19,7 @@ - + @@ -30,10 +27,10 @@ + - diff --git a/samples/AzCopyCore/AzCopyCore/Program.cs b/samples/AzCopyCore/AzCopyCore/Program.cs index 44a127662fa..f8e25881ab0 100644 --- a/samples/AzCopyCore/AzCopyCore/Program.cs +++ b/samples/AzCopyCore/AzCopyCore/Program.cs @@ -35,7 +35,7 @@ static void Main(string[] args) ReadOnlySpan destination = options.GetSpan("/Dest:"); long before = GC.GetAllocatedBytesForCurrentThread(); - var sw = Stopwatch.StartNew(); + Stopwatch sw = Stopwatch.StartNew(); // transfer from file system to storage if (destination.StartsWith("http://")) @@ -80,7 +80,6 @@ static void TransferDirectoryToStorage(ReadOnlySpan localDirectory, ReadOn if (options.Contains("/DestKey:")) { ReadOnlySpan key = options["/DestKey:"]; - var str = key.ToString(); keyBytes = key.ComputeKeyBytes(); } else if (options.Contains("/@:")) @@ -103,7 +102,6 @@ static void TransferDirectoryToStorage(ReadOnlySpan localDirectory, ReadOn using (var client = new StorageClient(keyBytes, account, host, 80, Log)) { - //var files = new Files(directoryPath); foreach (string filepath in Directory.EnumerateFiles(directoryPath)) { // TODO: Use Path.Join when it becomes available