Net4x.ConversionClassLibrary 1.0.0.26250

dotnet add package Net4x.ConversionClassLibrary --version 1.0.0.26250
                    
NuGet\Install-Package Net4x.ConversionClassLibrary -Version 1.0.0.26250
                    
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="Net4x.ConversionClassLibrary" Version="1.0.0.26250" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net4x.ConversionClassLibrary" Version="1.0.0.26250" />
                    
Directory.Packages.props
<PackageReference Include="Net4x.ConversionClassLibrary" />
                    
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 Net4x.ConversionClassLibrary --version 1.0.0.26250
                    
#r "nuget: Net4x.ConversionClassLibrary, 1.0.0.26250"
                    
#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 Net4x.ConversionClassLibrary@1.0.0.26250
                    
#: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=Net4x.ConversionClassLibrary&version=1.0.0.26250
                    
Install as a Cake Addin
#tool nuget:?package=Net4x.ConversionClassLibrary&version=1.0.0.26250
                    
Install as a Cake Tool

NUnitToXunitConverter

NUnitToXunitConverter is a small command-line tool that automates conversion of NUnit test code to xUnit using Roslyn-based source rewrites. It scans projects and source files, detects NUnit tests, and applies syntax transformations to produce xUnit-compatible test code. The project targets .NET 10.

Features

  • Project and file scanning to locate NUnit tests.
  • Roslyn-based rewrites to convert common NUnit attributes and assertions to xUnit equivalents.
  • Project backup and restore support before making changes.
  • Designed for use in CI or interactively in your dev environment.

Requirements

  • .NET 10 SDK
  • Visual Studio 2026 or the dotnet CLI
  • The project uses Microsoft.CodeAnalysis.CSharp (Roslyn) for code analysis and rewrites.

Build and run

  • Open the solution in Visual Studio 2026 and build, or use the CLI:
    • dotnet build
    • dotnet run --project NUnitToXunitConverter\NUnitToXunitConverter.csproj -- [path-to-solution-or-folder]

Usage (example)

  • Run the executable or via dotnet run and provide a solution file, project folder, or source folder. The tool will:
    • Scan projects for NUnit tests.
    • Create backups before modifying files (see ProjectBackupService / ProjectRestoreService).
    • Apply Roslyn-based rewrites implemented in NUnitToXunitRewriter, XunitSyntaxRewriter, and related classes.

Notes & limitations

  • Not all NUnit constructs have a 1:1 mapping to xUnit; review changes and run tests after conversion.
  • Complex custom assertion helpers or test frameworks extensions may require manual intervention.
  • Always verify and run tests in CI after conversion.

Contributing

  • Fork the repo, create a branch, implement changes, and open a pull request.
  • Prefer small, focused commits and add unit tests for new rewrite rules where feasible.

License

  • See the license file in the repository root (LICENSE.md).
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Net4x.ConversionClassLibrary:

Package Downloads
Net4x.ProjectsLibrary

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0.26250 111 9/7/2026