mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +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.
18 lines
534 B
C#
18 lines
534 B
C#
using Microsoft.VisualStudio.Setup.Configuration;
|
|
|
|
namespace Cosmos.Build.Builder.Models
|
|
{
|
|
internal class VisualStudioInstance
|
|
{
|
|
public ISetupInstance2 SetupInstance { get; }
|
|
|
|
public string ID => SetupInstance.GetInstanceId();
|
|
public string Name => SetupInstance.GetDisplayName();
|
|
public string InstallationPath => SetupInstance.GetInstallationPath();
|
|
|
|
public VisualStudioInstance(ISetupInstance2 setupInstance)
|
|
{
|
|
SetupInstance = setupInstance;
|
|
}
|
|
}
|
|
}
|