简体   繁体   中英

Visual Studio 2017 Enterprise Add Unit Test project throws Package Installation Error

I have a solution with projects pointing to .Net Framework 4.5 which I have opened in Visual Studio 2017 and tried to Unit Test Project pointing to .Net Framework 4.5. I am getting the following error

Package Installation error .

Could not add all required packages to the project. The following packages failed to install from 'C:\\Program Files(x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\502SXCIF.E5I\\Packages':

MSTest.TestFramework.1.1.11: Failed to add reference to 'Microsoft.VisualStudio.TestPlatform.TestFramework'

I have tried changing the Platform to x86 as suggested on some online resources.

I am using a Windows 7 Enterprise 64 bit. Has anyone been able to resolve this.

您的本地系统中缺少与MsUnit测试相关的模板。如果您使用的是其他版本,请尝试复制相应的文件夹,它将解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM