首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Visual中通过Package控制台安装TestStack.White

在Visual中通过Package控制台安装TestStack.White
EN

Stack Overflow用户
提问于 2016-01-19 04:32:41
回答 1查看 552关注 0票数 1

我试图通过Visual中的Package控制台安装带有TestStack.White的NuGet,但是当我在Package控制台中输入“install TestStack.White”命令时,会得到以下错误:

代码语言:javascript
复制
Installing 'Castle.Core 3.3.3'.
Successfully installed 'Castle.Core 3.3.3'.
Installing 'TestStack.White 0.13.3'.
Successfully installed 'TestStack.White 0.13.3'.
The names of some imported commands from the module 'TestStack.White' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
Adding 'Castle.Core 3.3.3' to PSTableManager.
Uninstalling 'Castle.Core 3.3.3'.
Successfully uninstalled 'Castle.Core 3.3.3'.
Install failed. Rolling back...
Install-Package : Could not install package 'Castle.Core 3.3.3'. You are trying to install this package into a project that targets 'Native,Version=v0.0', but the package does 
not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

我做错了什么吗?我怎么才能解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-21 08:38:18

您不能安装此软件包的原因是它与您的项目不兼容。包TestStack.White基于.NET (托管),因此不能添加到本机C++项目:

代码语言:javascript
复制
You are trying to install this package into a project that targets 'Native,Version=v0.0', but the package does 
not contain any assembly references or content files that are compatible with that framework.

有一个托管版本的C++,称为C++/CLI。您可以尝试将其与TestStack.White包一起使用。但是,这取决于项目的需求。如果必须创建本地应用程序,则不能使用C++/CLI。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34868558

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档