Scotec.Revit.Isolation.SourceGenerator
2027.4.2-dev.7
dotnet add package Scotec.Revit.Isolation.SourceGenerator --version 2027.4.2-dev.7
NuGet\Install-Package Scotec.Revit.Isolation.SourceGenerator -Version 2027.4.2-dev.7
<PackageReference Include="Scotec.Revit.Isolation.SourceGenerator" Version="2027.4.2-dev.7" />
<PackageVersion Include="Scotec.Revit.Isolation.SourceGenerator" Version="2027.4.2-dev.7" />
<PackageReference Include="Scotec.Revit.Isolation.SourceGenerator" />
paket add Scotec.Revit.Isolation.SourceGenerator --version 2027.4.2-dev.7
#r "nuget: Scotec.Revit.Isolation.SourceGenerator, 2027.4.2-dev.7"
#:package Scotec.Revit.Isolation.SourceGenerator@2027.4.2-dev.7
#addin nuget:?package=Scotec.Revit.Isolation.SourceGenerator&version=2027.4.2-dev.7&prerelease
#tool nuget:?package=Scotec.Revit.Isolation.SourceGenerator&version=2027.4.2-dev.7&prerelease
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
Related Packages
- Scotec.Revit.Isolation https://www.nuget.org/packages/Scotec.Revit.Isolation/
- Scotec.Revit https://www.nuget.org/packages/Scotec.Revit/
Documentation
License
MIT License https://licenses.nuget.org/MIT
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 |