arjan;7874 wrote:
I did read the link that you posted, but I was hoping that it only couldn't work with absolute file paths in my code and that targets that are on other drives would be resolved and the target location would be updated in the project.
It does seem to do something similar for the references? Those also reside in the C:\LocalNuGetRepository, but work oke in the NCrunch build.
It would be cool that a user could say, oke I've got this weird setup with my NuGet... this is my original location, but you can treat it as a relative packages path. And in the project file change those locations. (Don't know if I'm suggesting something awful here or not?)
The problem in this case has more to do with the cross-drive issue. There are features in NCrunch that do require a solution (with its references) to be a fully relocatable unit. NCrunch cannot reliably identify all the absolute paths in a solution, so it has no way of providing meaningful errors when things downstream in the engine fail. The check that is failing for you at the moment is intended to prevent some very weird things happening in the engine later in the run.
It's true that NCrunch does have some limited logic for relocating referenced assemblies into workspaces, but this does tend to fall short in the area of some Nuget packages which have their own build steps etc. I realise this may not apply to your case, but this is the way the engine has been designed to try and give people the most predictable behaviour.
So I'm sorry, but unless you can move either the solution or the Nuget packages, I don't see a way we can make this work for you :(