Fix build for build servers

Excludes mvc test projects for release builds and activates nuget package restore.