NCrunch 4.2.0.7
Microsoft Visual Studio Enterprise 2019
Version 16.4.3
VisualStudio.16.Release/16.4.3+29709.97
Microsoft .NET Framework
Version 4.8.03761
When NCrunch is building my unit test project, it fails with a bunch of errors pointing to the same problem:
Quote:NCrunch: If you are experiencing problems in getting this project to build, have a look at
http://www.ncrunch.net/d...ng_project-build-issues
Controllers\api\ClaimControllerTests.cs (3, 22): The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Controllers\api\ConvictionControllerTests.cs (3, 22): The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Controllers\api\PricesApiControllerTests.cs (10, 22): The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Controllers\api\AddressApiControllerTests.cs (7, 22): The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Clicking on one of the line links in the above output takes me to this line:
Code:
using System.Web.Http.Results;
The solution itself builds fine, and I can run the MS test runner to execute all the unit tests without a problem.
One thing I did spot is that the namespace System.Web.Http appears in multiple assemblies:
- System.Net.Http.Formatting
- System.Web.Http.WebHost
- System.Web.Http
It's not clear to me why NCrunch is having a problem here. Is there any information I can pass on that can help?
Thanks.