Question: How can I ensure that all projects only use a specific set of nuget packages and versions? I'm using VS2017.
The way that I would handle this is to add a (directory.build.targets)[https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build#directorybuildprops-and-directorybuildtargets] to help in this scenario.
The idea is that you will add an msbuild .targets file in the source root named
directory.build.targets. In that file you can
inject a target to be run before the build starts. For example,