Before project builds, I would like to read from external source and set the
<ApplicationDisplayVersion>. In my csproj, I've the following:
... <Target Name="CalculateVersionCodeProperties" BeforeTargets="Build"> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <ApplicationDisplayVersion>1.2.3</ApplicationDisplayVersion> <ApplicationVersion>2</ApplicationVersion> </PropertyGroup> </Target> ...
But the above doesn't seems to work. When running
AppInfo.VersionString in the code, it is showing the default
1.0.0; it should read
Any pointers? Thanks.