Nuget - "名称不能以'<'字符开头 [英] Nuget - "Name cannot begin with the '<' character

查看:75
本文介绍了Nuget - "名称不能以'<'字符开头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS 2013更新5.我右键单击一个项目并选择"管理NuGet包"。当我尝试安装"SpecFlow"时包邮我得到
消息:

"名称不能以'<'字符开头,十六进制值0x3C,第10行,第2位。"

I
如果我使用包管理器控制台会遇到同样的问题

任何
想法,它提到的文件?我该如何解决这个问题?

推荐答案

Rob Bowman UK,

Hi Rob Bowman UK,

根据您的描述,我创建一个控制台应用程序并安装VS2013 Update 5中我的项目的SpecFlow包。它安装成功。

According to your description, I create a Console application and install the SpecFlow package for my project in VS2013 Update 5. It installed successful.

我的VS2013的NuGet Package Manager版本是2.8。我还将其升级到版本2.12,它也可以安装成功。请检查您的NuGet包管理器版本。

The NuGet Package Manager version for my VS2013 is 2.8. And I also upgrade it to version 2.12, it also could install successful. Please check your NuGet Package Manager version.

此外,请创建一个新的默认应用程序并尝试安装其他NuGet包。如果其他软件包可以成功安装,请尝试为新项目安装SpecFlow。

In addition, please create a new default application and try install other NuGet Package. If other packages could install successful, please try install SpecFlow for the new project.

如果它可以为新项目成功安装,问题应该与您自己的项目有关。您可以将项目文件复制到新项目以解决导致此问题的文件。

If it could install successful for the new project, the problem should be related to your own project. You could copy your project files to the new project to troubleshoot which file causes this problem.

如果其他软件包也无法成功安装,则NuGet软件包管理器或Visual Studio上应该存在一些问题。您可以尝试按照以下步骤检查此问题。

If other packages also could not install successful, there should be some problem on NuGet Package Manager or Visual Studio. You could try with following steps to check this issue.


  1. 卸载并重新安装NuGet Package Manager以检查NuGet Package Manager是否有任何问题。
  2. 修复Visual Studio 2013以检查Visual Studio 2013上是否存在任何已安装的问题。



最好的问候,

Weiwei


Best Regards,
Weiwei


这篇关于Nuget - &quot;名称不能以'&lt;'字符开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆