A widely tested and reliable method involves downloading reference assemblies from NuGet:
Click and let the wizard extract the reference assemblies. microsoft .net framework 4.5 developer pack download
Unlike the end-user runtime (which runs .NET apps), the gives you everything needed to build and test them: A widely tested and reliable method involves downloading