BoolBySigma / UpdateAssemblyInfo

SORRY THIS IS NO LONGER MAINTAINED
10 stars 9 forks source link

Setting Informational Version to assembly version + string #30

Open fdahlberg opened 6 years ago

fdahlberg commented 6 years ago

Hi,

I'm trying to set the Informational Version to the following: $(Assembly.AssemblyVersionMajor).$(Assembly.AssemblyVersionMinor).$(Assembly.AssemblyVersionBuild)-$(Date:yyyyMMdd)$(Rev:r)

However this doesn't create the Informational Version properly. Is this a bug, or am I doing something wrong? This is the output log:

Task : Update Assembly Info Description : Update assembly info of one or multiple projects Version : 2.0.38 Author : Bool (by Sigma) Help : Having Problems? Please create an issue on our Github and we will try to help you.

Parameter Value


Add Missing Attriutes True Description Build: 7.3.2018547 - Commit: 80e1c652f1b7fd4c4635b8ff7af9a66cb7159b9e Configuration release Company Safran Product Safran Scheduler Copyright Copyright c Safran 2018 Trademark Safran Culture
Informational Version $(current).$(current).$(current)-201805047 Com Visible
CLS Compliant
File Version .$(current).$(current).814 Assembly Version $(current).$(current).$(current).$(current) Updating... Input string was not in a correct format.

The idea is to create a string that will be my Nuget package version semver + prerelease string. The Informational Version is used by default in the Nuget Pack Task.

Kind Regards Fredrik Dahlberg