我试图更新一个NuGet包以添加一些程序集引用,但是我遇到了以下错误:
这是我的 nuspec 文件:
我认为这个功能是在 NuGet 1.2 版本中添加的 - 我正在使用 1.2.2213.45 版本。名称空间为 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' 的元素'metadata'具有名称空间'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'中的无效子元素'frameworkAssemblies'。预期的可能元素列表为:名称空间为 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' 中的 'dependencies、language、summary'。
这是我的 nuspec 文件:
<?xml version="1.0"?>
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>PetaPoco.Core</id>
<title>PetaPoco.Core - A tiny ORMish thing for your POCOs (Core Only)</title>
<version>3.0.0</version>
<authors>Topten Software</authors>
<owners>Topten Software</owners>
<licenseUrl>http://www.toptensoftware.com/petapoco/license</licenseUrl>
<projectUrl>http://www.toptensoftware.com/petapoco/</projectUrl>
<iconUrl>http://www.toptensoftware.com/petapoco/nuget_icon.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>
PetaPoco is a tiny, single file .NET data access layer inspired by Massive that works with both non-dynamic POCO objects and dynamics.
This package includes the just the core PetaPoco library (ie: no T4 templates)
</description>
<tags>ORM POCO MVC MVC2 MVC3 ASP.NET WebForms WebMatrix MySQL Database</tags>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Data" />
<frameworkAssembly assemblyName="System.Configuration" />
</frameworkAssemblies>
</metadata>
<files>
<file src="PetaPoco.cs" target="Content\Models" />
</files>
</package>