我已經列入我nuspec文件中的以下內容:nuspec contentFiles元素的元數據無效
<?xml version="1.0"?>
<package>
<metadata minClientVersion="3.3">
<contentFiles>
<file src="*.css" target="_css" />
</contentFiles>
</metadata>
</package>
不過,我得到以下錯誤:
MSBUILD : OctoPack error OCTONUGET: The element 'metadata' in namespace ' http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd ' has invalid child element 'contentFiles' in namespace ' http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd '. List of possible elements expected: 'language, licenseUrl, projectUrl, requireLicenseAcceptance, summary, tags, frameworkAssemblies, title, references, copyright, authors, description, version, iconUrl, owners, dependencies, id, developmentDependency, releaseNotes' in namespace ' http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd '.
當我看這裏:https://blog.nuget.org/20160126/nuget-contentFiles-demystified.html,我已經完成似乎是正確的。我錯過了什麼?