Skip to content

🐛 Compilation error when using NUnit2 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sixeyes opened this issue Nov 14, 2024 · 0 comments
Open

🐛 Compilation error when using NUnit2 #2

sixeyes opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sixeyes
Copy link

sixeyes commented Nov 14, 2024

Describe the Bug

After adding AutoFixture and Autofixture.NUnit2 to the project, it will no longer compile.

Using Visual Studio 2019, .NET v4.7.2
I'm using NUnit v2.6.4 and I've added the two binding redirects as described in the readme.txt to app.config, which already had many other redirects.

I'm getting the following error:

The type 'ITestCaseData' exists in both 'nunit.core.interfaces, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' and 'nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'

Scenario

I have added AutoFixture v4.18.1, AutoFixture.NUnit2 v4.18.1 and NUnit v2.6.4 to my project.

I use ITestCaseData static arrays in some of my tests and it is these files that no longer compile.

Expected Behavior

I expected it to just work.

@sixeyes sixeyes added the bug Something isn't working label Nov 14, 2024
@aivascu aivascu transferred this issue from AutoFixture/AutoFixture Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant