Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuspec version from AssemblyInfo version

i have a problem,in Team Foundation Service i would read a version from Assembly Info that is auto increased when i run a build.... and set this version in nupsec file to create a nuget package with the same number, ex

[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

In tfs i can use power shell script but i don't know how to made this(i don't know power shell script). Can anyone help me or tell me a site when i find solution?? Thanks and sorry for my bad English.

like image 939
pampua84 Avatar asked Oct 19 '25 17:10

pampua84


1 Answers

Finally i solved my problem, i found on tfs marketplace task that reads assembly version and sets automatically its value to nuspec file, so the nuget package version is the same of assembly. To whom it may concern, the task name is:

Nuget version synchronizer published by Cdiscount Alm

Thanks anyway for your help, guys

like image 144
pampua84 Avatar answered Oct 21 '25 07:10

pampua84