Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

NuGet pack is ignoring assembly info

$
0
0

When I run nuget pack MyProject.csproj from the command line, I get the following error:

The replacement token 'author' has no value.

I checked my AssemblyInfo, and the AssemblyCompany is specified as "AJ Richardson". I tried manually replacing $author$ with AJ Richardson in my nuspec file, but then I got a slightly different error:

The replacement token 'description' has no value.

But the AssemblyDescription is also specified. It seems that NuGet is not reading anything from my AssemblyInfo. I have verified that AssemblyInfo is included in my project and the build action is set to Compile.

I have made a couple of NuGet packages before and did not have any issues. The only difference between this package and my previous packages is that this one has dependencies.

For reference, here is my nuspec:

<?xml version="1.0"?><package><metadata><id>$id$</id><version>1.0.0</version><title>$title$</title><authors>$author$</authors><owners>$author$</owners><licenseUrl>https://github.com/my/repo/blob/master/LICENSE</licenseUrl><projectUrl>https://github.com/my/repo</projectUrl><requireLicenseAcceptance>false</requireLicenseAcceptance><description>$description$</description><releaseNotes>Initial release.</releaseNotes><copyright>Copyright AJ Richardson 2015</copyright><tags></tags></metadata><dependencies><dependency id="Newtonsoft.Json" version="6.0.1" /></dependencies></package>

So my question is, why isn't NuGet reading my AssemblyInfo, and how do I convince it to do that?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>