Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
Versioning now working against values in AssemblyInfo.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrocket committed Jan 24, 2018
1 parent bfc129b commit bf90597
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ETN_CPU_GPU_MINER")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © 2017-2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.0.1")]
[assembly: AssemblyFileVersion("2.0.0.1")]
9 changes: 8 additions & 1 deletion ETN_CPU_GPU_MINER/ETN_CPU_GPU_MINER/RegistryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ public RegistryManager()

public void Initialize()
{
System.Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
string sVersion = String.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Revision);


localMachine = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
etnCraftAppKey = GetAppKey();

SetVersion(sVersion);

if (etnCraftAppKey.GetValue(AUTO_LOAD_KEY_NAME) == null)
SetAutoLoad(autoLoadDefault);

Expand All @@ -66,7 +72,8 @@ public void Initialize()
SetWalletId(walletIdDefault);

if (etnCraftAppKey.GetValue(VERSION_KEY_NAME) == null || !etnCraftAppKey.GetValue(VERSION_KEY_NAME).Equals(VERSION_NUM))
SetVersion(VERSION_NUM);
SetVersion(sVersion);
//SetVersion(VERSION_NUM);

if (etnCraftAppKey.GetValue(PORT_KEY_NAME) == null)
SetPort(portDefault);
Expand Down
Binary file modified ETN_CPU_GPU_MINER/ETN_CPU_GPU_MINER/bin/Debug/ETN_CPU_GPU_MINER.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified ETN_CPU_GPU_MINER/ETN_CPU_GPU_MINER/obj/Debug/ETN_CPU_GPU_MINER.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit bf90597

Please sign in to comment.