我只是设置了一个私人/本地 nuget 画廊。我使用http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package中提到的说明创建了我的第一个包
但是,当我尝试上传我的包时出现以下错误:
包清单包含无效的目标框架:“”
有任何想法吗?
[编辑]
这是包中的 nuspec 文件内容:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>EpsiDB</id>
<version>1.0.0.0</version>
<title>EpsiDB</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
<iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>This is a test package</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2014</copyright>
<tags>Tag1 Tag2</tags>
<dependencies>
<dependency id="AntiXSS" version="4.2.1" />
<dependency id="EntityFramework" version="6.0.2" />
<dependency id="odp.net.managed" version="121.1.1" />
<dependency id="odp.net.x64" version="112.3.20" />
<dependency id="odp.net.x86" version="112.3.20" />
</dependencies>
</metadata>
这是源代码,它出了什么问题: