RevitDevTool.NUnit 0.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package RevitDevTool.NUnit --version 0.0.2
                    
NuGet\Install-Package RevitDevTool.NUnit -Version 0.0.2
                    
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="RevitDevTool.NUnit" Version="0.0.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RevitDevTool.NUnit" Version="0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="RevitDevTool.NUnit">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 RevitDevTool.NUnit --version 0.0.2
                    
#r "nuget: RevitDevTool.NUnit, 0.0.2"
                    
#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 RevitDevTool.NUnit@0.0.2
                    
#: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=RevitDevTool.NUnit&version=0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=RevitDevTool.NUnit&version=0.0.2
                    
Install as a Cake Tool

RevitDevTool.NUnit

Runs NUnit tests inside a live Revit or AutoCAD-family host. Requires RevitDevTool (the host-test controller ships in that installer). Do not also reference NUnit3TestAdapter or Microsoft.Testing.Platform.

<PropertyGroup>
  <IsTestProject>true</IsTestProject>
  <HostName>Revit</HostName>
  <HostVersion>$(RevitVersion)</HostVersion>
  <HostLaunch>false</HostLaunch>
  <HostTimeout>60</HostTimeout>
  <HostLaunchTimeout>360</HostLaunchTimeout>
</PropertyGroup>
<ItemGroup>
  <PackageReference Include="RevitDevTool.NUnit" />
  <PackageReference Include="Microsoft.Testing.Platform.MSBuild" />
  <PackageReference Include="NUnit" />
</ItemGroup>

AutoCAD-family projects set <HostName>Revit</HostName> (or AutoCad, …) and <HostVersion>$(RevitVersion)</HostVersion>. Keep a global.json next to the test project with "test": { "runner": "Microsoft.Testing.Platform" }.

cd samples/DevTools.NUnit.SampleTests
dotnet test --project DevTools.NUnit.SampleTests.csproj -c Debug.Autodesk.2026 --filter Arithmetic_runs_inside_host
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.0.4 110 8/17/2026 0.0.4 is deprecated because it is no longer maintained.
0.0.3 92 8/14/2026
0.0.2 90 8/14/2026
0.0.1 86 8/14/2026