Scotec.Revit.Isolation.SourceGenerator 2026.4.2-dev.5

This is a prerelease version of Scotec.Revit.Isolation.SourceGenerator.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Scotec.Revit.Isolation.SourceGenerator --version 2026.4.2-dev.5
                    
NuGet\Install-Package Scotec.Revit.Isolation.SourceGenerator -Version 2026.4.2-dev.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Scotec.Revit.Isolation.SourceGenerator" Version="2026.4.2-dev.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Scotec.Revit.Isolation.SourceGenerator" Version="2026.4.2-dev.5" />
                    
Directory.Packages.props
<PackageReference Include="Scotec.Revit.Isolation.SourceGenerator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Scotec.Revit.Isolation.SourceGenerator --version 2026.4.2-dev.5
                    
#r "nuget: Scotec.Revit.Isolation.SourceGenerator, 2026.4.2-dev.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Scotec.Revit.Isolation.SourceGenerator@2026.4.2-dev.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Scotec.Revit.Isolation.SourceGenerator&version=2026.4.2-dev.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Scotec.Revit.Isolation.SourceGenerator&version=2026.4.2-dev.5&prerelease
                    
Install as a Cake Tool

Scotec.Revit.Isolation.SourceGenerator

Roslyn incremental source generator that produces assembly load context infrastructure for isolated Autodesk Revit add-ins.

Overview

Scotec.Revit.Isolation.SourceGenerator works together with Scotec.Revit.Isolation. It inspects isolation attributes on Revit entry point classes and automatically generates the factory and AssemblyLoadContext types required to load each add-in in its own isolated context.

What Gets Generated

For each annotated Revit entry point the generator produces:

  • RevitAssemblyLoadContext: Custom AssemblyLoadContext that resolves private dependencies in isolation.
  • RevitAddinAssemblyLoadContext / RevitSharedAssemblyLoadContext: Per-add-in and shared variants.
  • RevitAssemblyLoadContextInitializer: Initializes the load context before the first activation.
  • Factory classes (RevitApplicationFactory, RevitDbApplicationFactory, RevitCommandFactory, RevitCommandAvailabilityFactory): Thin Revit-facing types that activate implementations inside the isolated context.

Usage

This package is consumed automatically when you install Scotec.Revit.Isolation and does not normally need to be referenced directly.

dotnet add package Scotec.Revit.Isolation.SourceGenerator

Documentation

License

MIT License https://licenses.nuget.org/MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2027.4.2-dev.7 40 11/17/2026
2027.4.2-dev.5 54 11/16/2026
2027.4.1 120 11/1/2026
2026.4.2-dev.7 34 11/17/2026
2026.4.2-dev.5 48 11/16/2026
2026.4.1 108 11/1/2026
2025.4.2-dev.7 39 11/17/2026
2025.4.2-dev.5 49 11/16/2026
2025.4.1 111 11/1/2026