avcalc (12) [Avatar] Offline
#1
Hello Jim,

My SquareRt unit test fails as follows:
Calculate_4_Returns2 [0:00.142] Failed: System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http, Version=4.1.1.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at SquareRt.Core.SquareRtCalculator..ctor()
   at SquareRt.Core.Tests.SquareRtCalculatorTests.SetUp() in C:\data\SquareRt\SquareRt.Core.Tests\SquareRt.Core.Tests.cs:line 15


My SquareRt.Core project has System.Net.Http 4.3.3 installed.

Thank you,
Alex.
avcalc (12) [Avatar] Offline
#2
Hey Jim,

I've solved the issue by installing System.Net.Http NuGet package to my SquareRt.Core.Tests project.

Thank you,
Alex.
Jim Bennett (47) [Avatar] Offline
#3
Glad you got it resolved - it's not an issue I've seen. Are you using VS2017 on Windows or Mac?
avcalc (12) [Avatar] Offline
#4
VS2017 on Windows