关于使用C#的Monotouch IOS开发:
我正在尝试在我的Monotouch IOS项目中实现一个自动递增的内部版本号。像Major.Minor.Build这样的工具可以让构建部分在每次构建时自动递增。
我在下面找到了这篇文章,但它似乎使用了Objective C,我不知道如何使用Monotouch C#来让它工作。
http://monotouch.2284126.n4.nabble.com/How-to-increment-the-iPhone-Application-Version-number-on-every-build-td4425363.html
在Monotouch中,我可以访问"System.Reflection.AssemblyVersionAttribute",但我不知道如何使用它。我尝试了一些简单的东西,比如:
System.Reflection.AssemblyVersionAttribute tempvar = new System.Reflection.AssemblyVersionAttribute ("1.2.*");
Console.WriteLine("tempvar = " + tempvar.Version);但是打印输出是字面上的:"1.2.*“,并且不会自动递增。
有谁有过这样的经验吗?提前感谢
发布于 2012-08-09 23:10:51
System.Reflection.AssemblyVersionAttribute旨在用作属性。编译器将用一个数字替换*。例如。
[assembly: System.Reflection.AssemblyVersionAttribute ("1.2.*")]您可能还想查看此email,了解如何使用应用程序捆绑包版本。
https://stackoverflow.com/questions/11884859
复制相似问题