From 6d4ef71083257b62de7c83a3402e5744a643136e Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Wed, 15 Feb 2017 16:33:21 -0800 Subject: [PATCH] fix newly added remainings of TestAssetsManager --- .../GivenDotnetCachesAndPublishesProjects.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/dotnet-cache.Tests/GivenDotnetCachesAndPublishesProjects.cs b/test/dotnet-cache.Tests/GivenDotnetCachesAndPublishesProjects.cs index d67584867..e379d5493 100644 --- a/test/dotnet-cache.Tests/GivenDotnetCachesAndPublishesProjects.cs +++ b/test/dotnet-cache.Tests/GivenDotnetCachesAndPublishesProjects.cs @@ -33,7 +33,11 @@ namespace Microsoft.DotNet.Cli.Publish.Tests var rid = DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier(); var localAssemblyCache = Path.Combine(testProjectDirectory, "localAssemblyCache"); var intermediateWorkingDirectory = Path.Combine(testProjectDirectory, "workingDirectory"); - var profileProject = Path.Combine(TestAssetsManager.AssetsRoot, profileProjectName, $"{profileProjectName}.xml"); + var profileProjectPath = TestAssets.Get(profileProjectName) + .CreateInstance() + .WithSourceFiles() + .Root.FullName; + var profileProject = Path.Combine(profileProjectPath, $"{profileProjectName}.xml"); new RestoreCommand() .WithWorkingDirectory(testProjectDirectory) @@ -80,7 +84,11 @@ namespace Microsoft.DotNet.Cli.Publish.Tests .UseCurrentRuntimeFrameworkVersion(); var testProjectDirectory = testInstance.Root.ToString(); - var profileProject = Path.Combine(TestAssetsManager.AssetsRoot, profileProjectName, $"{profileProjectName}.xml"); + var profileProjectPath = TestAssets.Get(profileProjectName) + .CreateInstance() + .WithSourceFiles() + .Root.FullName; + var profileProject = Path.Combine(profileProjectPath, $"{profileProjectName}.xml"); new RestoreCommand() .WithWorkingDirectory(testProjectDirectory)