I am using Visual Studio Team Services. I have created a build definition using Hosted Build Controller and Hosted Build Agent. I have used a powershell script to assign version number automatically to assembly file or .exe file using TFS build number.
I have followed the following given links for this.
But I am unable to assign version to my .exe application. All the time it takes version number from AssemblyInfo.cs file. My purpose is to assign value of TFS build number to my assembly file.
AssemblyInfo.cs
before build. You should look at the scripts' output in the build log and understand what's not working there - inspect the parameters and the output. – Jonathan