These are chat archives for Microsoft/CodeContracts

5th
Sep 2015
Sergey Teplyakov
@SergeyTeplyakov
Sep 05 2015 00:25
@sharwell I'm finally find time to fix some issues with Code Contracts:)... I've tried to build solution with new test infrastructure, and I was unable to build until I enabled nuget package restore on build...
is it expected?
Sam Harwell
@sharwell
Sep 05 2015 02:46
@SergeyTeplyakov Visual Studio will automatically restore packages if you try to build within Visual Studio. How were you trying to build?
Sergey Teplyakov
@SergeyTeplyakov
Sep 05 2015 03:35
Sure, I tried to build, rebuild, clean+build, but I've got an error that I need to enable package restore first.
after turn it on, I was able to build successfully...
Sam Harwell
@sharwell
Sep 05 2015 03:37
When you say turn it on, do you mean this?
blob
Sergey Teplyakov
@SergeyTeplyakov
Sep 05 2015 03:39
yep
Sam Harwell
@sharwell
Sep 05 2015 03:42
That is enabled by default, and yes at least the first time you build after packages changed you'll need it enabled.
An alternative is to build using the buildCC script the first time, which will do a command-line restore operation.
But aside from you I've never seen someone disable that option in Visual Studio