Build/Test Issues

Missing reference error from generated code project.

Started by ecurren on 5,492 views

I am having an issue with what appears to be a project reference. I am referencing a project which is generated on build by CodeSmith Generator. This ‘data’ (generated) project connects to a database and generates the data layer and regenerates the code on build.
I generated all the code in the ‘data’ project before referencing this project in the other ‘web service’ project. When NCrunch attempts to build the solution it is notifying me of the following:

Controllers\AgentController.cs (15): The type or namespace name 'Data' does not exist in the namespace Domain.Network' (are you missing an assembly reference?)

This project has a reference to another project that was not loaded by NCrunch. If NCrunch is unable to build this project normally, check the following:
- All dependencies for this project are available on disk in their referenced locations
- All dependencies can be successfully loaded and built by Visual Studio
- All dependencies are supported by NCrunch (see http://www.ncrunch.net/support/frameworks for details)
- No dependencies are using the 'Ignore This Project Completely' NCrunch configuration setting

The following dependencies raised this warning:
D:\SourceCode\ Data.csproj:

Click here to hide this warning



The data project is referenced in the web service project. I am not sure how to go about debugging this issue and any help is appreciated.

Thank you
Well, as soon as I posted this question I found that the 'Ignore this component completely' property was set for this project. When I turned it off it builds fine.

Post a reply

Log in to reply.