hi,
yes, sort of. ;)
For my solution I have a Debug configuration (nuget package restore enabled) and DebugFast configuration.
The nuget targets file has the following modification in it:
<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'
AND '$(Configuration)' != 'DebugFast'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>
So if I know that all the nuget packages are already pulled down (usually by running a Debug build at some point) I can then build the solution with DebugFast config => don't have to go through the additional time that it takes for nuget to even check that packages exist. Saves quite a bit of time.
What would be really helpful would be a ncrunch solution config setting to tell it to ignore package restore. That way I can tell ncrunch to build the solution with Debug config but
not copy the nuget packages. If ncrunch can do this without my having to alter my solution config then I get the best of both worlds:
- Run Debug build of solution and have it verify/restore nuget packages like normal
- Run ncrunch with Debug config while (via ncrunch config) skipping the nuget package verify/restore and just pulling the binaries
sorry, that's all a bit wordy...
What you are suggesting is almost what I want - but I don't want to have to change my solution config to take account of ncrunch.
just a config setting in ncrunch which turns off the package restore would be great. :)