I know there is a couple of topics about and I have already red them. Still I couldn’t solve.
In NuGet Manager, RhinoCommon version appears 6.27.20176.5001, but tests give me error related to 6.27.20176.5000 as you see below.
System.IO.FileNotFoundException : Could not load file or assembly 'RhinoCommon, Version=6.27.20176.5000, Culture=neutral, PublicKeyToken=552281e97c755530'. The system cannot find the file specified.
I am trying to use xUnit for my plugin tests. There is a any chance this problem related to xUnit cannot support new version? Why it is complaining with old version?
Apart from this question, I am open any suggestion for Unit Test.
I thought it was working but not working, I also tried @mingo1214’s project. It is giving same error. Although all versions in dependencies are 6.27.20176.5001.
The tests fail and give error System.IO.FileNotFoundException : Could not load file or assembly 'RhinoCommon, Version=6.27.20176.5000, Culture=neutral, PublicKeyToken=552281e97c755530' or one of its dependencies. The system cannot find the file specified.
If you have time, @mingo1214 can you try your test while updating versions of rhinocommon? Because I am encountering same error in your project without any changes except only update reference versions.
@mingo1214, Yeap definitely I followed instructions. Actually I directly pull your repository. When I didn’t change anything, this is the error in the test project.
It should be there already in my example. Have you just tried to run “RhinoPluginCommand”? does it work? If not, then it means Rhino didn’t load the “RhinoPlugin”. You will need to drag and drop “RhinoPlugin\bin\RhinoPlugin.rhp” file to Rhino.