So, you can inject the value of DateTime.UtcNow in the value of this attribute and then parse it at runtime to get the build date. NET SDK, you can use an MSBuild property to define the value of the AssemblyInformationalVersionAttribute. If your app name is called MyApp then open the MyApp.csproj and paste below the TargetFramework propertyGroup īuild$(::UtcNow.ToString("yyyyMMddHHmmssff")) and I will share how to get the build date and time in both Xamarin.Android & Xamarin.iOS. But in release mode we need to do small steps. and, tested for Android & iOS.Įach time when we generate apk or bundle we will get the build date and time and mainly we are able to get the build in Debug mode. This sample app is targeted for Android, iOS.This sample project is Xamarin.Forms PCL project.This article is prepared on a MAC machine.And it is better to install the latest Visual Studio updates from here. This article's source code is prepared using Visual Studio.If we want to get the Build date and time in Xamarin Android & iOS in Release mode then this article is for you. Let us go one by one.
0 Comments
Leave a Reply. |