Revert "Updated NuGet packages in samples solution to latest versions."

This reverts commit f2eeba50c5e693f0670b285efe274fe8ada3aafd.
Revert "Updated NuGet packages in main solution to latest versions."

This reverts commit 1b0257221862830219d7ab59091ff0f44727abc3.
Made sure package versions are consistent between all projects and across both solutions.