removed redundant code and configured solution to restore nuget packages during build