From 941b27a312f76a8a0492c1094183c180ec8cc342 Mon Sep 17 00:00:00 2001 From: Snakye Date: Thu, 23 Jan 2025 11:36:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.Build.Props | 2 +- .../Generators/AddInGenerator.cs | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Common.Build.Props b/Common.Build.Props index 3a85201d..384f4dc1 100644 --- a/Common.Build.Props +++ b/Common.Build.Props @@ -88,7 +88,7 @@ - 3.0.1-lc005 + 3.0.1-lc006 pik-group.com Reactive BIM RxBim diff --git a/src/Revit/RxBim.Nuke.Revit/Generators/AddInGenerator.cs b/src/Revit/RxBim.Nuke.Revit/Generators/AddInGenerator.cs index e9265f02..75f1e25c 100644 --- a/src/Revit/RxBim.Nuke.Revit/Generators/AddInGenerator.cs +++ b/src/Revit/RxBim.Nuke.Revit/Generators/AddInGenerator.cs @@ -6,6 +6,7 @@ using System.Linq; using Extensions; using global::Nuke.Common.ProjectModel; + using JetBrains.Annotations; using Models; using Nuke.Extensions; using Nuke.Models; @@ -14,6 +15,7 @@ /// /// The Generator for Revit addin manifest files. /// + [PublicAPI] public class AddInGenerator { /// @@ -40,7 +42,13 @@ public void GenerateAddInFile( GenerateAddIn(rootProjectName, pluginTypes, outputDirectory); } - private void GenerateAddIn( + /// + /// Generates a new addin file. + /// + /// The root project name. + /// Addin types for registration in Revit. + /// The output directory path. + protected virtual void GenerateAddIn( string? rootProjectName, IEnumerable addinTypesPerProjects, string output) @@ -70,7 +78,12 @@ private void GenerateAddIn( revitAddIns.ToXDocument().Save(addInFile); } - private Guid GetAddInGuid(Project project, AssemblyType assemblyType) + /// + /// Returns addin guid. + /// + /// Project for generate guid. + /// . + protected Guid GetAddInGuid(Project project, AssemblyType assemblyType) { var propertyName = assemblyType.ToPropertyName(); var value = project.GetProperty(propertyName);