[英]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. 我在Visual Studio 2017中打开了一个指向.Net Framework 4.5的项目的解决方案,并尝试对指向.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':
以下软件包无法从'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' MSTest.TestFramework.1.1.11:无法添加对“ Microsoft.VisualStudio.TestPlatform.TestFramework”的引用
I have tried changing the Platform to x86 as suggested on some online resources. 我曾尝试根据某些在线资源的建议将平台更改为x86。
I am using a Windows 7 Enterprise 64 bit. 我正在使用Windows 7 Enterprise 64位。 Has anyone been able to resolve this.
有谁能够解决这个问题。
您的本地系统中缺少与MsUnit测试相关的模板。如果您使用的是其他版本,请尝试复制相应的文件夹,它将解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.