Giter Site home page Giter Site logo

updateprojectversions's Introduction

Update Project Versions Numbers

Auto Update Version Numbers in Visual Studio csproj files

Having multiple solutions containing multiple projects can be cumbersome when managing version numbers. For my project I have addopted the Ubuntu style of versioning with my own flavor that works for me. The problem is updating the version numbers on successful build. Some projects build NuGet pacakges and need new version numbers. Visual Studio doesn't have an automatic version incrementor and if it did it proabably would be for some version format that didn't work for me.

Now I have this tiny project that will auto increment my versions for me when I build in Visual Studio. The app is a console app so it can easily be utilized in scripts as well. Plus if not using Visual Studio and don't like my version style, modify it for your own needs.

The version style I choose is: Year.Month.Day.Count

image

For this to work I created an executable from this project and updated my Visual Studio project properties to run a post-build event. The executable expects the project PathName to be passed as a parameter

Update this project property (build-event) Pre or Post.

image

Paste this code (update your folder location to UpdateProjectVersions

call C:\src\Production\UpdateProjectVersions\UpdateProjectVersions $(ProjectDir)$(ProjectName).csproj

updateprojectversions's People

Contributors

icodeintx avatar

Watchers

 avatar

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.