Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
using Autodesk.PackageBuilder.Extensible.Navisworks;

namespace Autodesk.PackageBuilder.Tests.Application
{
Expand All @@ -24,7 +25,7 @@ public class NavisworksPackageBuilder : PackageContentsBuilder
<CompanyDetails Name="Company Name" Url="url" Email="email" />
<Components Description="Navisworks 2024">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw19" SeriesMax="Nw21" />
<ComponentEntry AppName="NavisworksAddin" ModuleName="./Contents/2024/NavisworksAddin.dll" />
<ComponentEntry AppName="NavisworksAddin" ModuleName="./Contents/2024/NavisworksAddin.dll" AppType="ManagedPlugin" />
</Components>
<Components Description="Navisworks 2025">
<RuntimeRequirements OS="Win64" Platform="NAVMAN|NAVSIM" SeriesMin="Nw22" />
Expand All @@ -49,6 +50,7 @@ public NavisworksPackageBuilder()
Components
.CreateEntry("Navisworks 2024")
.NavisworksPlatform(19, 22, true)
.AppType()
.AppName("NavisworksAddin")
.ModuleName(@"./Contents/2024/NavisworksAddin.dll");

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Autodesk.PackageBuilder;
using Autodesk.PackageBuilder.Model.Application;

namespace Autodesk.PackageBuilder.Extensible.Navisworks;

/// <summary>
/// Provides extension methods for adding extensible data to Navisworks components.
/// </summary>
/// <remarks>
/// For more information, see the Navisworks Developer Documentation:
/// https://aps.autodesk.com/app-store/publisher-center/navisworks
/// </remarks>
public static class NavisworksExtensibleData
{
/// <summary>
/// Adds an <c>AppType</c> attribute to the <see cref="ComponentsBuilder"/> extensible data.
/// </summary>
/// <param name="componentsBuilder">The <see cref="ComponentsBuilder"/> instance to extend.</param>
/// <param name="value">The value to assign to the <c>AppType</c> attribute.</param>
/// <returns>The updated <see cref="ComponentsBuilder"/> instance.</returns>
public static ComponentsBuilder AppType(this ComponentsBuilder componentsBuilder, string value = "ManagedPlugin")
{
componentsBuilder.DataBuilder.CreateAttribute<ComponentEntry>(nameof(AppType), value);
return componentsBuilder;
}
}
2 changes: 1 addition & 1 deletion Build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
</PropertyGroup>
</Project>