Skip to content

Enable dnn manifest tokens #16

Description

@dazinator

Rather than the developer having to explicitly replace some values (in square brackets) in the DNN manifest file, I could automatically set them using properties of the project. For example, rather than the following manifest file:

<package name="[YourPackageName]" type="Module" version="0.0.0">
      <friendlyName>[FriendlyPackageName]</friendlyName>
      <description></description>

It could instead contain variables that I will automatically substitute with appropriate values:

<package name="$projectName$" type="Module" version="$manifestVersionNumer$">
      <friendlyName>$assemblyTitle$</friendlyName>
      <description>$assemblyDescription$</description>

These values will come from the corresponding project properties

image

One important thing to note will be that when you use a variable in the manifest for the version number (like below), then by default it will be set according to an MsBuild property named $(manifestVersionNumber) which by default, will be set from the AssemblyInfoVersion (Major.Minor.Build). You could optionally override this variable with your own version number - i.e perhaps a version number based on the Team City build counter etc.

<package name="$projectName$" type="Module" version="$manifestVersionNumer$">

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions