Open
Conversation
There was a problem hiding this comment.
Pull request overview
Updates centrally-managed Revit Toolkit package versions across supported Revit versions (2021–2027) to the latest preview patch, keeping the solution’s Revit integration dependencies current.
Changes:
- Bump
Nice3point.Revit.Toolkitfrom*-preview.4.20260310to*-preview.5.20260329for Revit 2021–2027 via conditional central package versions.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2021.4.0-preview.4.20260310→2021.4.0-preview.5.202603292022.4.0-preview.4.20260310→2022.4.0-preview.5.202603292023.4.0-preview.4.20260310→2023.4.0-preview.5.202603292024.3.0-preview.4.20260310→2024.3.0-preview.5.202603292025.2.0-preview.4.20260310→2025.2.0-preview.5.202603292026.1.0-preview.4.20260310→2026.1.0-preview.5.202603292027.0.0-preview.4.20260310→2027.0.0-preview.5.20260329Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
Nice3point/RevitToolkit (Nice3point.Revit.Toolkit)
v2027.0.0-preview.5.20260329Compare Source
External Events
New family of external event types replacing legacy
ActionEventHandler,AsyncEventHandler:T.RaiseAsync()that returns aTask.RaiseAsync().AllowDirectInvocationfor direct execution in API context.ExternalEvent Source Generator
New
[ExternalEvent]attribute with incremental source generator that eliminates boilerplate for defining external events.Annotate a method in a partial type and the generator produces typed event properties automatically:
Source generator supports multiple parameters, methods with extra parameters like
private void DeleteWindows(string arg1, int arg2, bool arg3)also work.Roslyn versions 4.14 and 5.0+ supported.
Roslyn Analyzers and Code Fixers
New analyzer package with diagnostics for
[ExternalEvent]annotated methods:TaskorTask<T>.async void.[ExternalEvent].partial.Context
BeginDialogSuppressionScope():MessageBoxResult,TaskDialogResult, custom handler.Improvements
UnsafeAccessormethods for .NET 8+.Lockclass andInterlockedoperations.BeginAssemblyResolveScopenow uses Stack to support nested scopes with different directories.Breaking Changes
RevitContextorRevitApiContextinstead.BeginDialogSuppressionScope()instead.BeginFailureSuppressionScope()instead.BeginAssemblyResolveScope()instead.Applicationinstead.Application.ActiveUIDocumentinstead.Application.ActiveUIDocument.Documentinstead.RevitContext.UiApplicationinstead.ExternalEventor[ExternalEvent]source generator.AsyncExternalEventor[ExternalEvent]source generator.AsyncRequestExternalEvent<T>or[ExternalEvent]source generator.ExternalEventor[ExternalEvent]source generator.Automatic Migration with ReSharper/Rider
All obsolete methods are marked with
[CodeTemplate]attributes, enabling automatic code conversion in JetBrains ReSharper and Rider. Simply place your cursor on the obsolete method and use the suggested quick-fix to update to the new API.Migration Guide
Replace
ContextwithRevitContextorRevitApiContext:Replace manual suppress/restore with disposable scopes:
Replace
BeginAssemblyResolve/EndAssemblyResolvewith scope:New: Specify directory path directly for assembly resolution:
Replace legacy event handlers with new External Events:
Replace legacy async event handlers:
Or use the source generator to avoid boilerplate entirely:
Full changelog: Nice3point/RevitToolkit@2027.0.0-preview.4.20260310...2027.0.0-preview.5.20260329
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.