cadbooster;18331 wrote:
Does that mean that NCrunch tries to build the Debug config, but Visual Studio only activates the NoLicense code?
Sort of. In this case it's most probably an inconsistency between the dependency data from Visual Studio (project.assets.json) and the build configuration.
I expect VS would likely set up its dependency data according to the selected build configuration in the IDE. NCrunch relies on this data to be fed downstream because it can't safely generate it itself. When you have dependencies from one build configuration being fed into a build system running on a different build configuration, weird stuff can happen.
Try to keep your NCrunch build configuration identical to the one selected in VS. If you continue to have problems, I recommend adjusting your logic so that your dependencies are the same between configurations but your code is different (i.e. use compiler conditionals instead of build conditions).