要run 4.6.1的專案…

當遇到這個BUG的時候…
Microsoft.Common.CurrentVersion.targets(1217, 5): [MSB3644] The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

這個錯誤訊息會依你的版本有所不同↑

https://docs.microsoft.com/en-us/troubleshoot/developer/dotnet/framework/general/developer-language-pack

按這個連結就好