我有一个NuGet包http://www.nuget.org/packages/Tavis.UriTemplates/具有以下nuspec文件,为什么Nuget包选错了平台?
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Tavis.UriTemplates</id>
<version>0.4</version>
<authors>Darrel Miller</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>URI Template resolution library</title>
<description>Implementation of RFC 6570</description>
<tags>http</tags>
<releaseNotes>Added PCL version</releaseNotes>
<projectUrl>https://github.com/tavis-software/UriTemplates</projectUrl>
</metadata>
<files>
<file src="Packages\temp\UriTemplates\lib\Net35\*.*" target="lib\Net35" />
<file src="Packages\temp\UriTemplates\lib\portable\*.*" target="lib\Portable-Net40+WinRT45+WP71+sl4" />
</files>
</package>
如果我在一个项目,是.net40或安装该软件包.net45它选择了.NET 35 DLL。任何人都知道为什么它不选择PCL库?
您的nuspec不应该有不同的框架文件,如: –
@JonDouglas我试图避免必须使用链接文件构建shell项目,以便我可以支持.net 40和.net 45。如果我仍然需要为所有完整框架构建单独的DLL,似乎可以击败PCL库。 –