Skip to content

Commit

Permalink
Add comments to TestDotnetCLiUtility.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkl committed Apr 7, 2022
1 parent bd3e501 commit f2d4d50
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/TestUtilities/Test.Utility/TestDotnetCLiUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json.Linq;
using NuGet.Common;
using NuGet.Frameworks;
Expand Down Expand Up @@ -237,19 +234,22 @@ private static void CopyRestoreArtifacts(string artifactsDirectory, string pathT
destFileName: Path.Combine(pathToSdkInCli, "Newtonsoft.Json.dll"),
overwrite: true);

// Copy Microsoft.Extensions.FileSystemGlobbing.Abstractions.dll to the test folder as its a runtime dependency
File.Copy(
sourceFileName: typeof(FileInfoBase).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(FileInfoBase).Assembly.Location)),
sourceFileName: typeof(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase).Assembly.Location)),
overwrite: true);

// Copy Microsoft.Extensions.FileProviders.dll to the test folder as its a runtime dependency
File.Copy(
sourceFileName: typeof(IFileInfo).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(IFileInfo).Assembly.Location)),
sourceFileName: typeof(Microsoft.Extensions.FileProviders.IFileInfo).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.FileProviders.IFileInfo).Assembly.Location)),
overwrite: true);

// Copy Microsoft.Extensions.Primitives.dll to the test folder as its a runtime dependency
File.Copy(
sourceFileName: typeof(IChangeToken).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(IChangeToken).Assembly.Location)),
sourceFileName: typeof(Microsoft.Extensions.Primitives.IChangeToken).Assembly.Location,
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.Primitives.IChangeToken).Assembly.Location)),
overwrite: true);
}

Expand Down

0 comments on commit f2d4d50

Please sign in to comment.