Visual Studio 2017 安装XNA Game Studio后,编译项目出现如下错误“

Severity	Code	Description	Project	File	Line	Suppression State
Error		Error loading pipeline assembly "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.Build.Framework.dll".	WindowsGame1

解决办法:
【开始菜单】【Visual Studio 2017】目录,管理员运行Developer Command Prompt for VS 2017

cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin
gacutil /i Microsoft.Build.Framework.dll

即可解决。