Modernize versioning and display in app and build output
- Switch to explicit "3.2.0" next-version in GitVersion.yml - Update NuGet packages and set assembly name to "ImageCatalog" - Add MSBuild target to rename published exe with year and version - Add AppVersion property to DataModel, set via IVersionProvider - Replace static version label with data-bound versionLabel in UI - Remove manual version label logic from MainForm - Update DI to inject IVersionProvider into DataModel - Ensures UI always shows correct version and builds are versioned
This commit is contained in:
parent
509d5357a8
commit
69fdf01de3
6 changed files with 106 additions and 21 deletions
22
imagecatalog/MainForm.Designer.cs
generated
22
imagecatalog/MainForm.Designer.cs
generated
|
|
@ -171,7 +171,7 @@ namespace ImageCatalog
|
|||
Label29 = new Label();
|
||||
Label30 = new Label();
|
||||
PictureBox3 = new PictureBox();
|
||||
_Label27 = new Label();
|
||||
versionLabel = new Label();
|
||||
_Button7 = new Button();
|
||||
_Button5 = new Button();
|
||||
Label20 = new Label();
|
||||
|
|
@ -1748,15 +1748,16 @@ namespace ImageCatalog
|
|||
PictureBox3.TabStop = false;
|
||||
PictureBox3.Visible = false;
|
||||
//
|
||||
// _Label27
|
||||
// versionLabel
|
||||
//
|
||||
_Label27.Location = new Point(1182, 873);
|
||||
_Label27.Margin = new Padding(6, 0, 6, 0);
|
||||
_Label27.Name = "_Label27";
|
||||
_Label27.Size = new Size(281, 47);
|
||||
_Label27.TabIndex = 62;
|
||||
_Label27.Text = "Versione 2.2 2021";
|
||||
_Label27.TextAlign = ContentAlignment.MiddleRight;
|
||||
versionLabel.Location = new Point(1182, 873);
|
||||
versionLabel.Margin = new Padding(6, 0, 6, 0);
|
||||
versionLabel.Name = "versionLabel";
|
||||
versionLabel.Size = new Size(281, 47);
|
||||
versionLabel.TabIndex = 62;
|
||||
versionLabel.Text = "Versione 2.2 2021";
|
||||
versionLabel.TextAlign = ContentAlignment.MiddleRight;
|
||||
versionLabel.DataBindings.Add(new Binding("Text", bindingSource1, "AppVersion", true));
|
||||
//
|
||||
// _Button7
|
||||
//
|
||||
|
|
@ -1872,7 +1873,7 @@ namespace ImageCatalog
|
|||
Controls.Add(CheckBox22);
|
||||
Controls.Add(Label43);
|
||||
Controls.Add(TabControl1);
|
||||
Controls.Add(_Label27);
|
||||
Controls.Add(versionLabel);
|
||||
Controls.Add(_Button7);
|
||||
Controls.Add(_Button5);
|
||||
Controls.Add(Label20);
|
||||
|
|
@ -1997,6 +1998,7 @@ namespace ImageCatalog
|
|||
internal Label Label41;
|
||||
internal TextBox TextBox31;
|
||||
internal TextBox TextBox30;
|
||||
internal Label versionLabel;
|
||||
internal GroupBox GroupBox9;
|
||||
internal CheckBox CheckBox17;
|
||||
internal CheckBox CheckBox16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue