I have created following class which is a definition of custom attribute:
using System;
namespace Gucu112.ConfigurationHelper.Properties
{
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyReleaseNotesAttribute : Attribute
{
public AssemblyReleaseNotesAttribute(string releaseNotes) : base()
{
ReleaseNotes = releaseNotes;
}
public string ReleaseNotes { get; }
}
}
Then I have defined this custom attribute in my AssemblyInfo.cs
file:
(...)
[assembly: AssemblyReleaseNotes("Example release notes.")]
(...)
What I would like to do is use the attribute as variable in my *.nuspec file (as described for some other assembly attributes here):
<?xml version="1.0"?>
<package>
<metadata>
<id>$id$</id>
(...)
<description>$description$</description>
<releaseNotes>$releaseNotes$</releaseNotes>
(...)
</metadata>
</package>
However, after pushing the package to the NuGet gallery I cannot see content of my custom attribute. Is there any way to make it works? Thank you in advance for you help.