Releases: Nice3point/RevitBenchmark
2027.0.0-preview.3.20260322
This release adds support for Revit 2027, benchmarking for different languages and custom Revit installation path.
Localization support
BenchmarkDotNet initializes Revit with the English - United States language. To override these defaults, use assembly-level attributes:
-
Add the attributes to any .cs file in your project (e.g., Program.cs):
using Nice3point.Revit.Injector.Attributes; [assembly: RevitLanguage("ENU")]
-
Add the attributes directly to your .csproj file:
<!-- Revit Environment Configuration --> <ItemGroup> <AssemblyAttribute Include="Nice3point.Revit.Injector.Attributes.RevitLanguageAttribute"> <_Parameter1>ENU</_Parameter1> </AssemblyAttribute> </ItemGroup>
The RevitLanguage attribute accepts a language name (e.g., "English - United States"), code (e.g., "ENU")
or LanguageType enum value (e.g., "English_GB" or "15").
Custom Revit installation path
TUnit initializes Revit from C:\Program Files\Autodesk\Revit {version} installation path. To override these defaults, use assembly-level attributes:
-
Add the attributes to any .cs file in your project (e.g., TestsConfiguration.cs):
using Nice3point.Revit.Injector.Attributes; [assembly: RevitInstallationPath("D:\Autodesk\Revit Preview")]
-
Add the attributes directly to your .csproj file:
<!-- Revit Environment Configuration --> <ItemGroup> <AssemblyAttribute Include="Nice3point.Revit.Injector.Attributes.RevitInstallationPathAttribute"> <_Parameter1>D:\Autodesk\Revit $(RevitVersion)</_Parameter1> </AssemblyAttribute> </ItemGroup>
Breaking changes
- Global hooks
OnSetup/OnCleanuprenamed toOnGlobalSetup/OnGlobalCleanup
Full changelog: 2027.0.0-preview.2.20260203...2027.0.0-preview.3.20260322