Giter Site home page Giter Site logo

Comments (2)

adamralph avatar adamralph commented on July 16, 2024 1

@jbennink I'm not entirely sure I understand your question, but I'll try and paraphrase it:

I am performing updates by comparing the AssemblyVersion in two .NET assemblies. When I produce a pre-release version, the pre-release identifiers are not represented in the AssemblyVersion, so my update mechanism fails. What can I do instead?

Assuming that my paraphrasing is correct, I'll attempt to answer the question:

Given that pre-release versions are a series of dot-seperated alphanumeric identifiers, there is no good way to embed them in an AssemblyVersion. Therefore I recommend that you find some other way to compare your .NET assemblies, such as AssemblyInformationalVersion, which should contain the entire version, or the name of a containing package, zip file, etc.

Regarding your more general question, yes, I believe that is outside the scope of MinVer and I suggest you raise that elsewhere.

I'm closing this for now, since I do not see any feature request here, and I fail to see any connection with #669 and #667. If you would like to request a feature, please use the template. If you would like discuss anything further, please start a discussion.

from minver.

jbennink avatar jbennink commented on July 16, 2024

@adamralph I was perhaps explaining too much. The feature #669 with a "none" setting would make using prereleases with an automatic update system easier. Current any prerelease increment the patch version. So a stable 2.0.0 release generates a 2.0.1 (minver) pre-release. I have included the commit height as a 4th digit in the assemblyversion. But then 2.0.1.1234 is a prerelease for the stable 2.0.1 release.
With autoincrement=none the prerelease version would become 2.0.0.1234 and once a stable new release with be created when you tag a 2.0.1 it would generate an assemblyversion 2.1.1.0 since it will be the last commit.

In that way (with autoincrment=none) the update check of the msixbundle mechanism (https://github.com/Microsoft/msix-packaging) would still work. The current way minver autoincrements does not work.

I have also thought about useing a different field but it feel logical to use the assemblyversion as it is strongly typed and the Informational version would require scanning strings to get things to work.

BUT: I have though af a different solution for the time being, I will create two appid's and keep the prerelease versions seperate. That will also allow to install side by side and also seems to be what others do.

Thanks for you answer and keep this closed. :-)

from minver.

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.