Files
speckle-sharp-connectors/Build/Consts.cs
T
2024-07-10 15:13:55 +01:00

41 lines
1.2 KiB
C#

namespace Build;
public static class Consts
{
public static readonly string[] Solutions = ["Speckle.Connectors.sln"];
public static readonly InstallerProject[] InstallerManifests =
{
new("arcgis", new InstallerAsset[] { new("Connectors/ArcGIS/Speckle.Connectors.ArcGIS3", "net6.0-windows") }),
new("rhino", new InstallerAsset[] { new("Connectors/Rhino/Speckle.Connectors.Rhino7", "net48") }),
new("revit", new InstallerAsset[] { new("Connectors/Revit/Speckle.Connectors.Revit2023", "net48") }),
new("autocad", new InstallerAsset[] { new("Connectors/Autocad/Speckle.Connectors.Autocad2023", "net48") })
};
}
public readonly struct InstallerProject
{
public string HostAppSlug { get; init; }
public IReadOnlyList<InstallerAsset> Projects { get; init; }
public InstallerProject(string hostAppSlug, IReadOnlyList<InstallerAsset> projects)
{
HostAppSlug = hostAppSlug;
Projects = projects;
}
public override string ToString() => $"{HostAppSlug}";
}
public readonly struct InstallerAsset
{
public InstallerAsset(string projectPath, string targetName)
{
ProjectPath = projectPath;
TargetName = targetName;
}
public string ProjectPath { get; init; }
public string TargetName { get; init; }
}