fixup Cli.Utils.Tests for latest code from rel/1.0.0
This commit is contained in:
parent
b8dbdc29ae
commit
acbef441b1
2 changed files with 9 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
|
using Microsoft.DotNet.Cli;
|
||||||
using Microsoft.DotNet.Cli.Utils;
|
using Microsoft.DotNet.Cli.Utils;
|
||||||
using Microsoft.DotNet.InternalAbstractions;
|
using Microsoft.DotNet.InternalAbstractions;
|
||||||
using Microsoft.DotNet.ProjectModel;
|
using Microsoft.DotNet.ProjectModel;
|
||||||
|
@ -228,7 +229,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
||||||
var projectContext = ProjectContext.Create(
|
var projectContext = ProjectContext.Create(
|
||||||
testInstance.Path,
|
testInstance.Path,
|
||||||
FrameworkConstants.CommonFrameworks.NetCoreApp10,
|
FrameworkConstants.CommonFrameworks.NetCoreApp10,
|
||||||
DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers());
|
DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers(DotnetFiles.VersionFileObject));
|
||||||
|
|
||||||
var depsFilePath =
|
var depsFilePath =
|
||||||
projectContext.GetOutputPaths("Debug", outputPath: outputDir).RuntimeFiles.DepsJson;
|
projectContext.GetOutputPaths("Debug", outputPath: outputDir).RuntimeFiles.DepsJson;
|
||||||
|
@ -268,7 +269,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
||||||
var projectContext = ProjectContext.Create(
|
var projectContext = ProjectContext.Create(
|
||||||
testInstance.Path,
|
testInstance.Path,
|
||||||
FrameworkConstants.CommonFrameworks.NetCoreApp10,
|
FrameworkConstants.CommonFrameworks.NetCoreApp10,
|
||||||
DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers());
|
DotnetRuntimeIdentifiers.InferCurrentRuntimeIdentifiers(DotnetFiles.VersionFileObject));
|
||||||
|
|
||||||
var depsFilePath =
|
var depsFilePath =
|
||||||
projectContext.GetOutputPaths("Debug", buildBasePath).RuntimeFiles.DepsJson;
|
projectContext.GetOutputPaths("Debug", buildBasePath).RuntimeFiles.DepsJson;
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
"buildOptions": {
|
"buildOptions": {
|
||||||
"emitEntryPoint": true,
|
"emitEntryPoint": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"compile": {
|
||||||
|
"include": [
|
||||||
|
"**/*.cs",
|
||||||
|
"../../src/dotnet/DotnetFiles.cs"
|
||||||
|
]
|
||||||
|
},
|
||||||
"copyToOutput": {
|
"copyToOutput": {
|
||||||
"include": [
|
"include": [
|
||||||
"../../TestAssets/TestProjects/OutputStandardOutputAndError/*",
|
"../../TestAssets/TestProjects/OutputStandardOutputAndError/*",
|
||||||
|
|
Loading…
Reference in a new issue