安装 DiscordSharp NuGet 包时出现问题
Issue when installing DiscordSharp NuGet Package
我已经解决了这个问题,请看我posted
的回答
我在尝试使用包管理器控制台安装 DiscordSharp (Github | NuGet) 时遇到问题。
当我使用 Discord Sharp NuGet 页面上显示的安装命令时,出现以下错误(关于格式,请参阅我的评论以获取错误屏幕截图):
PM> Install-Package DiscordSharp -Pre
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.0)'.
Install-Package : The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd' has invalid child element 'developmentDependency' in namespace
'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd'. List of possible elements expected: 'copyright, tags, description, frameworkAssemblies,
references, dependencies, releaseNotes, language, summary' in namespace
'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd'.
At line:1 char:1
+ Install-Package DiscordSharp -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
这是我在安装任何其他软件包之前在新项目中遇到的错误,在 DiscordSharp 之前安装 json.net 之后我也遇到了同样的错误。
如果有帮助,我在 Windows 8.
上使用 Visual Studio 2012
如果我在 post 中遗漏了任何需要的内容,请告诉我。感谢您的帮助!
问题已解决:我使用的 NuGet 版本已过时 Visual Studio 2012.
更新到 Visual Studio 2015 解决了这个问题。
我已经解决了这个问题,请看我posted
的回答我在尝试使用包管理器控制台安装 DiscordSharp (Github | NuGet) 时遇到问题。
当我使用 Discord Sharp NuGet 页面上显示的安装命令时,出现以下错误(关于格式,请参阅我的评论以获取错误屏幕截图):
PM> Install-Package DiscordSharp -Pre
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.0)'.
Install-Package : The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd' has invalid child element 'developmentDependency' in namespace
'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd'. List of possible elements expected: 'copyright, tags, description, frameworkAssemblies,
references, dependencies, releaseNotes, language, summary' in namespace
'http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd'.
At line:1 char:1
+ Install-Package DiscordSharp -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
这是我在安装任何其他软件包之前在新项目中遇到的错误,在 DiscordSharp 之前安装 json.net 之后我也遇到了同样的错误。
如果有帮助,我在 Windows 8.
上使用 Visual Studio 2012如果我在 post 中遗漏了任何需要的内容,请告诉我。感谢您的帮助!
问题已解决:我使用的 NuGet 版本已过时 Visual Studio 2012.
更新到 Visual Studio 2015 解决了这个问题。