Skip to content

Commit

Permalink
Фикс
Browse files Browse the repository at this point in the history
Snakye committed Jan 23, 2025
1 parent fff7f91 commit 941b27a
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common.Build.Props
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@
</Choose>

<PropertyGroup>
<Version>3.0.1-lc005</Version>
<Version>3.0.1-lc006</Version>
<Company>pik-group.com</Company>
<Authors>Reactive BIM</Authors>
<Product>RxBim</Product>
17 changes: 15 additions & 2 deletions src/Revit/RxBim.Nuke.Revit/Generators/AddInGenerator.cs
Original file line number Diff line number Diff line change
@@ -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 @@
/// <summary>
/// The Generator for Revit addin manifest files.
/// </summary>
[PublicAPI]
public class AddInGenerator
{
/// <summary>
@@ -40,7 +42,13 @@ public void GenerateAddInFile(
GenerateAddIn(rootProjectName, pluginTypes, outputDirectory);
}

private void GenerateAddIn(
/// <summary>
/// Generates a new addin file.
/// </summary>
/// <param name="rootProjectName">The root project name.</param>
/// <param name="addinTypesPerProjects">Addin types for registration in Revit.</param>
/// <param name="output">The output directory path.</param>
protected virtual void GenerateAddIn(
string? rootProjectName,
IEnumerable<ProjectWithAssemblyType> addinTypesPerProjects,
string output)
@@ -70,7 +78,12 @@ private void GenerateAddIn(
revitAddIns.ToXDocument().Save(addInFile);
}

private Guid GetAddInGuid(Project project, AssemblyType assemblyType)
/// <summary>
/// Returns addin guid.
/// </summary>
/// <param name="project">Project for generate guid.</param>
/// <param name="assemblyType"><see cref="AssemblyType"/>.</param>
protected Guid GetAddInGuid(Project project, AssemblyType assemblyType)
{
var propertyName = assemblyType.ToPropertyName();
var value = project.GetProperty(propertyName);

0 comments on commit 941b27a

Please sign in to comment.