Git Product home page Git Product logo

Comments (3)

colindembovsky avatar colindembovsky commented on June 1, 2024

hey @mrbelk - not sure what your ask is. Do you want to specify your own version numbers instead of taking it from the build?

If so, that kind of defeats the purpose of this task. This task is meant to match the assembly version to the build number. If you don't like the 1.0.0.r format, then I'd suggest that you create a custom build number and then use the version assemblies task right after doing whatever it is that you need to do. That way you get a scheme that you're happy with and the version assemblies still works as-is.

Let me know if you were thinking of something else entirely :-)

from cols-agent-tasks.

mrbelk avatar mrbelk commented on June 1, 2024

I can see how my original post could be confusing. I love the idea of using the Build number in the versioning of assemblies.

I was more noting that there could be a flaw in the "versionCode" usage of this task because when any part of the BuildNumber changes, the $(rev) property will reset back to one; breaking the "monotonically increasing" requirement of the Android versionCode. So if you change the build number from 1.0.0$(rev:.r) to say 1.1.0$(rev:.r), then your versionCode will drop back to 1.

I actually wound up writing my own powershell task to synthezise a version code based on the current date.

from cols-agent-tasks.

colindembovsky avatar colindembovsky commented on June 1, 2024

Ah I see what you're getting at. Unfortunately no (clean) way around that.

from cols-agent-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.