Added gitversion

This commit is contained in:
MaddoScientisto 2024-10-14 21:27:12 +02:00
commit 058b573d48
3 changed files with 24 additions and 16 deletions

7
GitVersion.yml Normal file
View file

@ -0,0 +1,7 @@
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDelivery
branches: {}
ignore:
sha: []
merge-message-formats: {}
next-version: 3.0

View file

@ -1,21 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework> <TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly> <AssemblyVersion>3.0.0.0</AssemblyVersion>
</PropertyGroup> <FileVersion>3.0.0.0</FileVersion>
<InformationalVersion>3.0.0-alpha.58+Branch.develop.Sha.e701ca7f36678380b6354f2e112b7dbdda5f5865</InformationalVersion>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <Version>3.0.0-alpha0058</Version>
<DebugType>embedded</DebugType> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<None Update="My Project\Application.myapp"> <None Update="My Project\Application.myapp">
<Generator>MyApplicationCodeGenerator</Generator> <Generator>MyApplicationCodeGenerator</Generator>

View file

@ -41,7 +41,7 @@ namespace ImageCatalog
_btnCreaCatalogoAsync.Name = "btnCreaCatalogoAsync"; _btnCreaCatalogoAsync.Name = "btnCreaCatalogoAsync";
var version = Assembly.GetExecutingAssembly().GetName().Version; var version = Assembly.GetExecutingAssembly().GetName().Version;
_Label27.Text = $"Version: {version.Major}.{version.Minor}.{version.Build}"; _Label27.Text = $"Version: {version.Major}.{version.Minor}.{version.Build}.{version.Revision}";
_results = new ConcurrentBag<string>(); _results = new ConcurrentBag<string>();
UiUpdateEvent += OnUiUpdateEvent; UiUpdateEvent += OnUiUpdateEvent;