.net - The 'Version' attribute is not declared in nuspec file -
when try pack .net core solution using vsts, the 'version' attribute not declared
error. nuspec file looks this:
<?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minclientversion="3.3.0"> <id>yyy.aspnetcore.custommapper</id> <version>0.0.1</version> <authors>build@yyyyyy.com</authors> <owners>yyy yyy</owners> <requirelicenseacceptance>false</requirelicenseacceptance> <description>yyy.aspnetcore</description> <tags>yyy</tags> <contentfiles> <files include="wwwroot\**" buildaction="embeddedresource" copytooutput="true" /> <files include="areas\custommapper\readme.txt" buildaction="embeddedresource" copytooutput="true" /> </contentfiles> <dependencies> <group> <dependency id="entityframework" version="6.1.0" /> <dependency id="microsoft.aspnetcore" version="1.1.0" /> <dependency id="microsoft.aspnetcore.mvc" version="1.1.0" /> <dependency id="microsoft.aspnetcore.staticfiles" version="1.1.0" /> <dependency id="microsoft.extensions.logging.debug" version="1.1.0" /> <dependency id="yyy.web.aspnetcore" version="1.0.1" /> <dependency id="simpleinjector.integration.aspnetcore" version="4.0.10" /> <dependency id="simpleinjector.integration.aspnetcore.mvc" version="4.0.10" /> </group> </dependencies> </metadata> <files> <file src="wwwroot\**" target="content\wwwroot" /> <file src="areas\custommapper\readme.txt" target="" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.data.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.provider.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.services.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.webapi.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.backend.webapi.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.provider.common.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.aspnetcore.custommapper.dll" target="lib\net452" /> </files> </package>
can please me why error happening?
actually, problem "version" attribute case sensitive. changed version attributes version entityframework , microsoft.aspnetcore , it's fixed now. nuspec looks below now:
<?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata minclientversion="3.3.0"> <id>yyy.aspnetcore.custommapper</id> <version>0.0.1</version> <authors>build@yyyyyy.com</authors> <owners>yyy yyy</owners> <requirelicenseacceptance>false</requirelicenseacceptance> <description>yyy.aspnetcore</description> <tags>yyy</tags> <contentfiles> <files include="wwwroot\**" buildaction="embeddedresource" copytooutput="true" /> <files include="areas\custommapper\readme.txt" buildaction="embeddedresource" copytooutput="true" /> </contentfiles> <dependencies> <group> <dependency id="entityframework" version="6.1.0" /> <dependency id="microsoft.aspnetcore" version="1.1.0" /> <dependency id="microsoft.aspnetcore.mvc" version="1.1.0" /> <dependency id="microsoft.aspnetcore.staticfiles" version="1.1.0" /> <dependency id="microsoft.extensions.logging.debug" version="1.1.0" /> <dependency id="yyy.web.aspnetcore" version="1.0.1" /> <dependency id="simpleinjector.integration.aspnetcore" version="4.0.10" /> <dependency id="simpleinjector.integration.aspnetcore.mvc" version="4.0.10" /> </group> </dependencies> </metadata> <files> <file src="wwwroot\**" target="content\wwwroot" /> <file src="areas\custommapper\readme.txt" target="" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.data.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.provider.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.services.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.webapi.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.backend.webapi.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.custommapper.provider.common.dll" target="lib\net452" /> <file src="bin\release\net452\win7-x86\yyy.aspnetcore.custommapper.dll" target="lib\net452" /> </files> </package>
Comments
Post a Comment