|
9 | 9 | using System.Reflection;
|
10 | 10 | using System.Text;
|
11 | 11 | using System.Threading.Tasks;
|
12 |
| -using Microsoft.Extensions.FileProviders; |
13 |
| -using Microsoft.Extensions.FileSystemGlobbing.Abstractions; |
14 |
| -using Microsoft.Extensions.Primitives; |
15 | 12 | using Newtonsoft.Json.Linq;
|
16 | 13 | using NuGet.Common;
|
17 | 14 | using NuGet.Frameworks;
|
@@ -237,19 +234,22 @@ private static void CopyRestoreArtifacts(string artifactsDirectory, string pathT
|
237 | 234 | destFileName: Path.Combine(pathToSdkInCli, "Newtonsoft.Json.dll"),
|
238 | 235 | overwrite: true);
|
239 | 236 |
|
| 237 | + // Copy Microsoft.Extensions.FileSystemGlobbing.Abstractions.dll to the test folder as its a runtime dependency |
240 | 238 | 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)), |
243 | 241 | overwrite: true);
|
244 | 242 |
|
| 243 | + // Copy Microsoft.Extensions.FileProviders.dll to the test folder as its a runtime dependency |
245 | 244 | 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)), |
248 | 247 | overwrite: true);
|
249 | 248 |
|
| 249 | + // Copy Microsoft.Extensions.Primitives.dll to the test folder as its a runtime dependency |
250 | 250 | 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)), |
253 | 253 | overwrite: true);
|
254 | 254 | }
|
255 | 255 |
|
|
0 commit comments