Blog Post

Configuring VSTS to set build version to .net core 2 web application

Thursday, November 2, 2017 2:01 AM

Puprose

I want to implement version information into .net core application.

 

In order to populate version we need add build argument as follows

--configuration $(BuildConfiguration) /p:Version=1.0.$(Build.BuildId).0  

 

The configuration should look like