Scotec.Revit.Isolation
2027.4.0-dev.4
dotnet add package Scotec.Revit.Isolation --version 2027.4.0-dev.4
NuGet\Install-Package Scotec.Revit.Isolation -Version 2027.4.0-dev.4
<PackageReference Include="Scotec.Revit.Isolation" Version="2027.4.0-dev.4" />
<PackageVersion Include="Scotec.Revit.Isolation" Version="2027.4.0-dev.4" />
<PackageReference Include="Scotec.Revit.Isolation" />
paket add Scotec.Revit.Isolation --version 2027.4.0-dev.4
#r "nuget: Scotec.Revit.Isolation, 2027.4.0-dev.4"
#:package Scotec.Revit.Isolation@2027.4.0-dev.4
#addin nuget:?package=Scotec.Revit.Isolation&version=2027.4.0-dev.4&prerelease
#tool nuget:?package=Scotec.Revit.Isolation&version=2027.4.0-dev.4&prerelease
Scotec.Revit.Isolation
Assembly load context isolation support for Autodesk Revit add-ins.
Overview
Scotec.Revit.Isolation enables Revit add-ins to load their dependencies into isolated AssemblyLoadContext instances. This prevents version conflicts between add-ins and with Revit's own assemblies, which is essential when multiple add-ins are loaded in the same Revit process.
Key Features
- RevitApplicationIsolation: Marks IExternalApplication for isolated loading.
- RevitDbApplicationIsolationAttribute: Marks IExternalDBApplication for isolated loading.
- RevitCommandIsolation: Marks IExternalCommand for isolated loading.
- RevitCommandAvailabilityIsolation: Marks IExternalCommandAvailability for isolated loading.
- RevitAddinIsolationContext: Defines a named isolation context grouping entry points that share a single AssemblyLoadContext.
- RevitSharedIsolationContext: Marks assemblies or types shared across isolation boundaries.
- Factory and load context infrastructure is generated automatically at compile time by Scotec.Revit.Isolation.SourceGenerator. No hand-written boilerplate required.
- Includes build-transitive MSBuild props that propagate configuration to consuming projects.
Getting Started
Install the NuGet package:
dotnet add package Scotec.Revit.Isolation
Annotate your external application:
[RevitAddinIsolationContext("MyAddin")]
[RevitApplicationIsolation]
public sealed class MyApplication : RevitApp { }
Reference the generated factory type in your .addin manifest instead of the application class.
Related Packages
- Scotec.Revit https://www.nuget.org/packages/Scotec.Revit/
- Scotec.Revit.Isolation.SourceGenerator https://www.nuget.org/packages/Scotec.Revit.Isolation.SourceGenerator/
Documentation
License
MIT License https://licenses.nuget.org/MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Scotec.Revit.Isolation:
| Package | Downloads |
|---|---|
|
Scotec.Revit
Revit application and command base classes that support Inversion of Control (IoC). |
|
|
Scotec.Revit.Wpf
Adds WPF support to Scotec.Revit. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2027.4.0-dev.4 | 66 | 6/20/2026 |
| 2027.3.4 | 116 | 6/15/2026 |
| 2027.3.3 | 106 | 6/10/2026 |
| 2026.4.0-dev.4 | 65 | 6/20/2026 |
| 2026.3.4 | 169 | 6/15/2026 |
| 2026.3.3 | 109 | 6/10/2026 |
| 2025.4.0-dev.4 | 69 | 6/20/2026 |
| 2025.3.4 | 119 | 6/15/2026 |
| 2025.3.3 | 111 | 6/10/2026 |
Breaking change: Running multiple Scotec.Revit-based add-ins within a single AssemblyLoadContext is no longer supported. Each add-in must use its own isolated context. Use SharedContextName and RevitSharedIsolationContext for sharing assemblies across add-ins. See CHANGELOG.md for details.