mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
- Added check for dependencies, which can be installed from the builder. - Replaced CosmosTask with CosmosBuildDefinition, which is much simpler. - The builder can be opened without any command line arguments. - If the VS path is not specified as a command line argument, it can be selected in a dialog.
28 lines
806 B
C#
28 lines
806 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
using Cosmos.Build.Builder.Services;
|
|
|
|
namespace Cosmos.Build.Builder.BuildTasks
|
|
{
|
|
internal class RestoreTask : MSBuildTargetBuildTaskBase
|
|
{
|
|
private const string RestoreTaskName = "Restore";
|
|
|
|
public override string Name => $"Restore - {Path.GetFileName(ProjectFilePath)}";
|
|
|
|
public override string ProjectFilePath { get; }
|
|
|
|
public override IEnumerable<string> Targets { get { yield return RestoreTaskName; } }
|
|
|
|
protected override IReadOnlyDictionary<string, string> Properties => null;
|
|
|
|
public RestoreTask(
|
|
IMSBuildService msBuildService,
|
|
string projectFilePath)
|
|
: base(msBuildService)
|
|
{
|
|
ProjectFilePath = projectFilePath;
|
|
}
|
|
}
|
|
}
|