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..d02fe12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ 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. +### Build +- Update `build` files to use `LTS`. + ## [2.0.0] / 2025-05-16 - 2025-06-05 ### Features - Support `AutoCAD` bundle. @@ -92,6 +100,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..bbd074c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 2.0.0 + 2.0.1 \ No newline at end of file