Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dennis 75 posts 397 karma points MVP
    Mar 15, 2022 @ 07:19
    Dennis
    0

    'Could not load file or assembly' after installing NuGet package

    Hi, I'm running into an issue with a package that I created. I used the umbraco package template in the dotnet CLI to create the project and I also use the dotnet CLI to pack the project into a package.

    My solution is separated into 2 projects, so I wanted to make a single package with both the dlls included. I used this stackoverflow post to do so.

    Now I installed the nuget package in a website and I get this error: enter image description here

    Notably, this is the second dll that's included in the package, so it seems that it has found the primary dll, being UrlTracker.Web. I checked my /bin folder and I could see UrlTracker.Core right next to UrlTracker.Web, so I don't understand why it can't find the dll.

    I don't know where to go from here. Do I have to release the dlls separately? I would prefer not to if possible. Does anyone have any ideas how this might be caused?

Please Sign in or register to post replies

Write your reply to:

Draft