Share via

Moving from xUnit v2 to v3

G S 0 Reputation points
2026-02-13T06:11:17.2933333+00:00

Hi,

According to <link removed>

Does after moving from xUnit v2 to v3 successfully, do I need to assign (SignAssembly) the new exe(xunit v3) and the clients the referenced (project referenced) to it ?

again or it is not connected ?

Thanks,

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gade Harika (INFOSYS LIMITED) 2,590 Reputation points Microsoft External Staff
    2026-02-13T12:04:43.5066667+00:00

    Thanks for reaching out.

    When moving from xUnit v2 to v3, test projects change from class libraries to standalone executables. This architectural change is independent of strong‑name signing. You only need to set SignAssembly for the xUnit v3 test executable if your solution already relies on strong‑named assemblies or enforces strong‑name validation; otherwise, no additional signing is required just because of the v2 → v3 migration. Referenced (client) projects are not automatically affected by this change and do not need to be re‑signed unless your existing strong‑name policy requires it. [xunit.net]

    Let me know if you need any further help with this. I will be happy to assist. If you find this helpful, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.