Added
A development team is creating a Sitecore 9 solution in Visual Studio. The solution needs Sitecore assemblies and build-time compatibility with the installed Sitecore version, while local developers should avoid committing machine-specific package locations or manually copying DLLs into the project. The team uses NuGet and source control, and deployments are performed through the existing release process. Which setup is best?
A version-appropriate Sitecore NuGet package provides a repeatable dependency reference, while committed project and package configuration lets developers restore the same dependencies without machine-specific paths. Committing manually copied DLLs undermines package management and creates drift. Pulling the newest assemblies without pinning risks incompatibility with the deployed Sitecore version. Compiling against a shared web root reintroduces local-path coupling.