NCrunch Version: 4.3.0.13
Visual Studio 2017 (15.9.11)
Solution contains a Shared Project (.shproj)
I've tried: (1) "Additional files to include" set to *.* in the shared project folder; and (2) Implicit project dependencies set to the shared project. Neither option has worked.
The Test Project will not build due to, for example: The type or namespace name 'x_namespace' does not exist in the namespace 'MySolution.Shared'
Variations of the above error occur for each reference to the shared project.
I have no problems when Instrumentation Mode is set to Legacy.
Build/Test Issues
Type or namespace does not exist when Instrumentation Mode is Optimized and using Shared Project
Started by pabanc on 1,707 views
Remco NCrunch Developer
#14431
10 Feb 2020 22:24 UTC
Hi, thanks for sharing this issue.
Shared projects essentially get rolled into the same assemblies once the compiler is done with them, so probably there is a code structure involved here that the compiler is creating that the new optimised mode just doesn't know how to handle.
Is there any chance you can isolate this problem with a sample solution that you can share with me? If I can reproduce it here, I should hopefully be able to promptly fix it. You can upload code in ZIP form through the contact form.
Shared projects essentially get rolled into the same assemblies once the compiler is done with them, so probably there is a code structure involved here that the compiler is creating that the new optimised mode just doesn't know how to handle.
Is there any chance you can isolate this problem with a sample solution that you can share with me? If I can reproduce it here, I should hopefully be able to promptly fix it. You can upload code in ZIP form through the contact form.
Post a reply
Log in to reply.