重装了 VS 2019,然后在安装 Reporting Service Extension 的时候发生了错误,ReturnCode:-2146232800
Package '717ad572-c4b7-435c-c166-c2969777f718,version=2.6.7' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=717ad572-c4b7-435c-c166-c2969777f718;PackageAction=Install;ReturnCode=-2146232800
Details
Return code: -2146232800
Return code details: The file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\SSRS\1031\Microsoft.DataWarehouse.VsIntegration.rll' already exists.
在删除目录中文件之后,在重试安装,错误依然发生。既然提示文件已存在,并不能自行覆盖文件。那我们可以安装的时候尝试一下 /force
开关。
C:\program files (x86)\microsoft visual studio\installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\vsixinstaller.exe /force Microsoft.DataTools.ReportingServices.vsix
然后,问题解决。