Skip to content

Commit f2d4d50

Browse files
committed
Add comments to TestDotnetCLiUtility.cs
1 parent bd3e501 commit f2d4d50

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: test/TestUtilities/Test.Utility/TestDotnetCLiUtility.cs

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
using System.Reflection;
1010
using System.Text;
1111
using System.Threading.Tasks;
12-
using Microsoft.Extensions.FileProviders;
13-
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
14-
using Microsoft.Extensions.Primitives;
1512
using Newtonsoft.Json.Linq;
1613
using NuGet.Common;
1714
using NuGet.Frameworks;
@@ -237,19 +234,22 @@ private static void CopyRestoreArtifacts(string artifactsDirectory, string pathT
237234
destFileName: Path.Combine(pathToSdkInCli, "Newtonsoft.Json.dll"),
238235
overwrite: true);
239236

237+
// Copy Microsoft.Extensions.FileSystemGlobbing.Abstractions.dll to the test folder as its a runtime dependency
240238
File.Copy(
241-
sourceFileName: typeof(FileInfoBase).Assembly.Location,
242-
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(FileInfoBase).Assembly.Location)),
239+
sourceFileName: typeof(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase).Assembly.Location,
240+
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.FileSystemGlobbing.Abstractions.FileInfoBase).Assembly.Location)),
243241
overwrite: true);
244242

243+
// Copy Microsoft.Extensions.FileProviders.dll to the test folder as its a runtime dependency
245244
File.Copy(
246-
sourceFileName: typeof(IFileInfo).Assembly.Location,
247-
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(IFileInfo).Assembly.Location)),
245+
sourceFileName: typeof(Microsoft.Extensions.FileProviders.IFileInfo).Assembly.Location,
246+
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.FileProviders.IFileInfo).Assembly.Location)),
248247
overwrite: true);
249248

249+
// Copy Microsoft.Extensions.Primitives.dll to the test folder as its a runtime dependency
250250
File.Copy(
251-
sourceFileName: typeof(IChangeToken).Assembly.Location,
252-
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(IChangeToken).Assembly.Location)),
251+
sourceFileName: typeof(Microsoft.Extensions.Primitives.IChangeToken).Assembly.Location,
252+
destFileName: Path.Combine(pathToSdkInCli, Path.GetFileName(typeof(Microsoft.Extensions.Primitives.IChangeToken).Assembly.Location)),
253253
overwrite: true);
254254
}
255255

0 commit comments

Comments
 (0)