Skip to content

How to get version during runtime #495

Answered by itavero
itavero asked this question in Q&A
Discussion options

You must be logged in to vote

Okay.. my bad. I tried to set the AssemblyVersion in the wrong way.
After adding an additional target as was mentioned in the README (which I totally missed somehow), the AssemblyVersion is updated correctly.

    <Target Name="UpdateAssemblyVersion" AfterTargets="MinVer">
        <PropertyGroup>
            <AssemblyVersion>$(MinVerVersion)</AssemblyVersion>
        </PropertyGroup>
    </Target>

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jbennink
Comment options

@jbennink
Comment options

@adamralph
Comment options

@itavero
Comment options

@adamralph
Comment options

Answer selected by itavero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants