From ca6be7c3eb433052070d1b20859b746773910c88 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Tue, 15 Jul 2025 11:12:30 -0300 Subject: [PATCH 1/3] Add `NavisworksExtensibleData` to support `AppType` configuration. --- ...PackageContentsBuilder_Navisworks_Tests.cs | 4 ++- .../Navisworks/NavisworksExtensibleData.cs | 26 +++++++++++++++++++ Build/build.ps1 | 2 +- Build/build.sh | 2 +- CHANGELOG.md | 7 +++++ Directory.Build.props | 2 +- 6 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 Autodesk.PackageBuilder/Extensible/Navisworks/NavisworksExtensibleData.cs diff --git a/Autodesk.PackageBuilder.Tests/Application/PackageContentsBuilder_Navisworks_Tests.cs b/Autodesk.PackageBuilder.Tests/Application/PackageContentsBuilder_Navisworks_Tests.cs index 86a122e..27e1466 100644 --- a/Autodesk.PackageBuilder.Tests/Application/PackageContentsBuilder_Navisworks_Tests.cs +++ b/Autodesk.PackageBuilder.Tests/Application/PackageContentsBuilder_Navisworks_Tests.cs @@ -1,4 +1,5 @@ using NUnit.Framework; +using Autodesk.PackageBuilder.Extensible.Navisworks; namespace Autodesk.PackageBuilder.Tests.Application { @@ -24,7 +25,7 @@ public class NavisworksPackageBuilder : PackageContentsBuilder - + @@ -49,6 +50,7 @@ public NavisworksPackageBuilder() Components .CreateEntry("Navisworks 2024") .NavisworksPlatform(19, 22, true) + .AppType() .AppName("NavisworksAddin") .ModuleName(@"./Contents/2024/NavisworksAddin.dll"); diff --git a/Autodesk.PackageBuilder/Extensible/Navisworks/NavisworksExtensibleData.cs b/Autodesk.PackageBuilder/Extensible/Navisworks/NavisworksExtensibleData.cs new file mode 100644 index 0000000..a3add20 --- /dev/null +++ b/Autodesk.PackageBuilder/Extensible/Navisworks/NavisworksExtensibleData.cs @@ -0,0 +1,26 @@ +using Autodesk.PackageBuilder; +using Autodesk.PackageBuilder.Model.Application; + +namespace Autodesk.PackageBuilder.Extensible.Navisworks; + +/// +/// Provides extension methods for adding extensible data to Navisworks components. +/// +/// +/// For more information, see the Navisworks Developer Documentation: +/// https://aps.autodesk.com/app-store/publisher-center/navisworks +/// +public static class NavisworksExtensibleData +{ + /// + /// Adds an AppType attribute to the extensible data. + /// + /// The instance to extend. + /// The value to assign to the AppType attribute. + /// The updated instance. + public static ComponentsBuilder AppType(this ComponentsBuilder componentsBuilder, string value = "ManagedPlugin") + { + componentsBuilder.DataBuilder.CreateAttribute(nameof(AppType), value); + return componentsBuilder; + } +} \ No newline at end of file diff --git a/Build/build.ps1 b/Build/build.ps1 index 9583582..d569439 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -18,7 +18,7 @@ $TempDirectory = "$PSScriptRoot\\.nuke\temp" $DotNetGlobalFile = "$PSScriptRoot\\global.json" $DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" -$DotNetChannel = "Current" +$DotNetChannel = "LTS" $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 diff --git a/Build/build.sh b/Build/build.sh index c6d1be3..26f0b25 100644 --- a/Build/build.sh +++ b/Build/build.sh @@ -14,7 +14,7 @@ TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp" DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json" DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" -DOTNET_CHANNEL="Current" +DOTNET_CHANNEL="LTS" export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 06dd369..9517d1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [2.0.1] / 2025-07-15 +### Features +- Support `Navisworks` extensible data. +### PackageBuilder +- Add `NavisworksExtensibleData` to support `AppType` configuration. + ## [2.0.0] / 2025-05-16 - 2025-06-05 ### Features - Support `AutoCAD` bundle. @@ -92,6 +98,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - First Release [vNext]: ../../compare/1.0.0...HEAD +[2.0.1]: ../../compare/2.0.0...2.0.1 [2.0.0]: ../../compare/1.0.6...1.2.0 [1.0.6]: ../../compare/1.0.5...1.0.6 [1.0.5]: ../../compare/1.0.4...1.0.5 diff --git a/Directory.Build.props b/Directory.Build.props index 8de2310..9ff8a73 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 2.0.0 + 2.0.1-alpha \ No newline at end of file From c7f903368cebe7a946048efd12b9385e07ca9213 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Tue, 15 Jul 2025 12:21:51 -0300 Subject: [PATCH 2/3] Update `build` files to use `LTS`. --- CHANGELOG.md | 2 ++ Directory.Build.props | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9517d1d..d02fe12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Support `Navisworks` extensible data. ### PackageBuilder - Add `NavisworksExtensibleData` to support `AppType` configuration. +### Build +- Update `build` files to use `LTS`. ## [2.0.0] / 2025-05-16 - 2025-06-05 ### Features diff --git a/Directory.Build.props b/Directory.Build.props index 9ff8a73..f3f2eeb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 2.0.1-alpha + 2.0.1-beta \ No newline at end of file From 3f4206666045d33384a2bf8bd6a04b62f2acd186 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Tue, 15 Jul 2025 12:24:38 -0300 Subject: [PATCH 3/3] Version 2.0.1 --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index f3f2eeb..bbd074c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 2.0.1-beta + 2.0.1 \ No newline at end of file