From acbef441b12cd9adea07a9721ce5afed9757b53f Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Tue, 11 Oct 2016 17:31:18 -0500 Subject: [PATCH] fixup Cli.Utils.Tests for latest code from rel/1.0.0 --- .../GivenAProjectDependencyCommandResolver.cs | 5 +++-- test/Microsoft.DotNet.Cli.Utils.Tests/project.json | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectDependencyCommandResolver.cs b/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectDependencyCommandResolver.cs index 3da4cab80..ebf2362f5 100644 --- a/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectDependencyCommandResolver.cs +++ b/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectDependencyCommandResolver.cs @@ -4,6 +4,7 @@ using System; using System.IO; using FluentAssertions; +using Microsoft.DotNet.Cli; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.InternalAbstractions; using Microsoft.DotNet.ProjectModel; @@ -228,7 +229,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests var projectContext = ProjectContext.Create( testInstance.Path, FrameworkConstants.CommonFrameworks.NetCoreApp10, - DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers()); + DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers(DotnetFiles.VersionFileObject)); var depsFilePath = projectContext.GetOutputPaths("Debug", outputPath: outputDir).RuntimeFiles.DepsJson; @@ -268,7 +269,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests var projectContext = ProjectContext.Create( testInstance.Path, FrameworkConstants.CommonFrameworks.NetCoreApp10, - DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers()); + DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers(DotnetFiles.VersionFileObject)); var depsFilePath = projectContext.GetOutputPaths("Debug", buildBasePath).RuntimeFiles.DepsJson; diff --git a/test/Microsoft.DotNet.Cli.Utils.Tests/project.json b/test/Microsoft.DotNet.Cli.Utils.Tests/project.json index 85120b8a8..36fd1ecab 100644 --- a/test/Microsoft.DotNet.Cli.Utils.Tests/project.json +++ b/test/Microsoft.DotNet.Cli.Utils.Tests/project.json @@ -3,6 +3,12 @@ "buildOptions": { "emitEntryPoint": true, "keyFile": "../../tools/Key.snk", + "compile": { + "include": [ + "**/*.cs", + "../../src/dotnet/DotnetFiles.cs" + ] + }, "copyToOutput": { "include": [ "../../TestAssets/TestProjects/OutputStandardOutputAndError/*",