Skip to content
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

Nunit FileLoadException when using Bootstrapper in Visual Studio 2019 #591

Closed
FLandgraf opened this issue Apr 2, 2020 · 6 comments
Closed

Comments

@FLandgraf
Copy link

FLandgraf commented Apr 2, 2020

When setting up a new Project (Class Lib .Net Framework) and integration the NBI.VisualStudio Bootstrapper in Visual Studio 2019 everything seems to be fine at first glance.

When hitting F5 Nunit will show up but present the following error:
_System.IO.FileLoadException: Could not File or Assembly "nunit.framework, Version=2.7.1.0, Culture=neutral,PublicKeyToken=2638cd05610744eb" or one of its dependencies.

These Token points to

<Reference Include="nunit.core, Version=2.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
      <HintPath>..\packages\NUnitV2.Core.2.7.1\lib\nunit.core.dll</HintPath>
</Reference>
<Reference Include="nunit.core.interfaces, Version=2.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
      <HintPath>..\packages\NUnitV2.Core.2.7.1\lib\nunit.core.interfaces.dll</HintPath>
</Reference>

Does anybody else experience the same problem?

@volkerheck
Copy link

Yes, I am running into the same issue.
Volker

@Seddryck
Copy link
Owner

I'll take a look to this.

@Seddryck
Copy link
Owner

Seddryck commented Jun 1, 2020

As a work-around, run Update-Package NUnit -version 2.7.1.0 to be sure that the correct version is registered in your project. I'll check in the package itself where the reference is wrong.

@volkerheck
Copy link

volkerheck commented Jun 2, 2020 via email

@Seddryck
Copy link
Owner

Seddryck commented Jun 7, 2020

I updated to NBi.VisualStudio 1.22.0 and 1.22.1 to fix this kind of issues, feel free to use them.

@Seddryck Seddryck closed this as completed Jun 7, 2020
@Seddryck Seddryck added this to the v1.23 milestone Jun 7, 2020
@volkerheck
Copy link

volkerheck commented Jun 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@Seddryck @volkerheck @FLandgraf and others