Comments (6)
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.
Never had to deal with this so no idea. How do you reference it.
from chocolateygui.
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.
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.
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.
Woot, it works!
from chocolateygui.
Related Issues (20)
- Duplicate registry keys HOT 2
- Chocolatey GUI throws repeated HttpRetryHandler warnings while attempting to update Chocolatey package list HOT 8
- Opening settings window crash HOT 2
- Chocolatey GUI should honour the proxy settings of Chocolatey CLI when downloading the icons
- Provide ability to use option for Chocolatey CLI commands to skip cached HTTP query results HOT 1
- Unexpected output in Console and Log
- Allow default sort order to be a setting in Chocolatey GUI
- Exit code 1603 when trying to install chocolateygui 1.1.0 HOT 3
- Exit code 1603 when trying to install chocolateygui 1.1.0 HOT 11
- Configure Chocolatey GUI to prompt for repository credentials like the Choco CLI HOT 1
- Unhandled Exception with GUI despite multiple un- and re-installs HOT 2
- Provide a way to ignore HttpCache when retrieving packages
- Make the package view for remote sources and This PC source consistent
- Add feature to automatically refresh the view on install, upgrade, reinstall or uninstall
- Add clearer messaging when downgrading a package HOT 1
- Failed to start application. HOT 1
- Related to #112 HOT 1
- Changes to Queries for the Chocolatey Community Repository
- COMException HRESULT 0x80072EE4 when trying to view __some__ package's details HOT 11
- Replace console view with log capture and view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolateygui.