dotnet-installer/src/dotnet/ToolPackageObtainer/ToolConfigurationAndExecutableDirectory.cs
William Lee 584d3f0502
Global tools package obtain (#8035)
Add ExeutablePackageObtainer

Given a tools package id, it can create a fake project and restore to correct folder

- DI, aka no circular dependency of commands
- Parser of config XML
- I try to create test nupkg at build time, so I can run test and debug
easily with VSCode. The code is in test csproj.
2017-11-21 20:10:06 -08:00

21 lines
742 B
C#

// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Extensions.EnvironmentAbstractions;
namespace Microsoft.DotNet.ToolPackageObtainer
{
internal class ToolConfigurationAndExecutableDirectory
{
public ToolConfigurationAndExecutableDirectory(
ToolConfiguration toolConfiguration,
DirectoryPath executableDirectory)
{
Configuration = toolConfiguration;
ExecutableDirectory = executableDirectory;
}
public ToolConfiguration Configuration { get; }
public DirectoryPath ExecutableDirectory { get; }
}
}