Could not find file or assembly (VS looking for wrong version)

Dan bayley 31 Reputation points
2021-08-04T15:43:52.763+00:00

I recently updated a .net standardard 2.0 class library.
In doing so I moved from 1.0.3.0 to 1.0.5.0

I have 2 projects referencing this. Framework 4.7 web app and .Net core 3.1 HTTP Function

I can see the references and the DLLs are all the correct versions in the relevant folders, but when I run either of the solutions I get an error that it can't find the DLL but refers to 1.0.3.0.

I have tried:

  • deleting obj folder
  • clearing out .net temp files
  • debug / release folders
  • cleaning and rebuilding.
  • Even creating a new project recompiling and pointing to the new project instead.

It references the project rather than the DLL so there is no specific version of pubkey specified.
I've trawled files looking for a reference to 1.0.3.0 and cannot find one.

It makes me think there is an issue with the library itself but as it outputs 1.0.5.0 in to the debug/build folders I'm struggling to see why.

I've lost hours to this on forums going through the above to no avail. Any pointers would be much appreciated.

120528-visualstudio.jpg

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
947 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,254 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dan bayley 31 Reputation points
    2021-08-05T20:44:10.967+00:00

    No progress made .... I incremented the version but despite publishing them I see no change.
    The DLLs in the publish folder are correct.

    120907-error.jpg

    120965-version.jpg

    1 person found this answer helpful.