简体   繁体   English

Visual Studio 2017企业添加单元测试项目引发程序包安装错误

[英]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.

相关问题 无法在Visual Studio 2017 Enterprise MSTest硒单元测试C#中向我的项目中找到/添加订购的测试项目 - Unable to find/add ordered test item to my project in Visual Studio 2017 Enterprise MSTest Selenium Unit Tests C# 无法在 Visual Studio 2017 中构建我的单元测试项目 - Unable to build My Unit Test Project in Visual Studio 2017 Visual Studio 2017(企业)上的 NUnit:Test Runner 仅作为扩展工作,而不是解决方案 NuGet 包? - NUnit on Visual Studio 2017 (Enterprise): Test Runner only works as Extension, not Solution NuGet package? Visual Studio 2015企业版安装错误 - Visual Studio 2015 Enterprise installation error Visual Studio 2017中“添加程序包”灯泡在哪里? - Where is the “Add package” lightbulb in Visual Studio 2017? Visual Studio 2017 安装项目错误 2727 - Visual Studio 2017 Setup Project error 2727 Visual Studio 2017 + NUnit + Resharper中的配置文件单元测试 - Profile unit test in Visual Studio 2017 + NUnit + Resharper 无法在Visual Studio 2017 Professional中运行单元测试 - Unable to run the unit test in visual studio 2017 professional 如何在Visual Studio 2017 15.6.0中调试单元测试 - How can I debug unit test in Visual Studio 2017 15.6.0 如何在Visual Studio 2017中创建单元测试(包括数据库)? - How to create Unit Test (include Database) in visual studio 2017?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM