Git Product home page Git Product logo

Comments (6)

gep13 avatar gep13 commented on June 11, 2024

Not sure about you, but typically, we handle this with a CommonAssemblyInfo.cs file, and the version number in this file is updated each build, and is referenced everywhere that needs it. That way, you don't have to update the same information in multiple places.

from chocolateygui.

chrissie1 avatar chrissie1 commented on June 11, 2024

Never had to deal with this so no idea. How do you reference it.

from chocolateygui.

gep13 avatar gep13 commented on June 11, 2024

The CommonAssemblyInfo.cs is essentially a "partial" file. So you create a link to the common file, and remove the AssemblyInfo and AssemblyFileVersion from the AssemblyInfo.cs file. When it compiles, it takes the Version numbers from the Common file. You can do a similar thing with the wix project. Happy to make these changes, but I have asked Xavier a question related to this, so going to hold off until I hear from him about it.

from chocolateygui.

gep13 avatar gep13 commented on June 11, 2024

Okay, looks like this is pretty much complete. Now, we just need to decide on how we are controlling the version number. The build script, at the minute, hard codes the version into the default.ps1 file, however, there is a way to retrieve the build number from the git repo using tags and commit history (that is the code that is currently commented out in that file). This is quite a "clean" way of doing it, but it would need some setup and testing, so need some feedback as to whether we want to proceed down this route.

Can you let me know what you think?

from chocolateygui.

gep13 avatar gep13 commented on June 11, 2024

I have played with this, and I "think" that I have it working, just running a full build on MyGet just now.

Used this:

http://wptheming.com/2011/04/add-remove-github-tags/

as a reference.

from chocolateygui.

gep13 avatar gep13 commented on June 11, 2024

Woot, it works!

from chocolateygui.

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.