Update assembly version, fix reference issue
Brian [2016-08-09 12:03:44]
Update assembly version, fix reference issue
diff --git a/PokemonGo/RocketAPI/Window/MainForm.cs b/PokemonGo/RocketAPI/Window/MainForm.cs
index 52fb1ef..b65eef6 100644
--- a/PokemonGo/RocketAPI/Window/MainForm.cs
+++ b/PokemonGo/RocketAPI/Window/MainForm.cs
@@ -7,7 +7,6 @@ using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
-using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@@ -31,6 +30,7 @@ using POGOProtos.Data;
using POGOProtos.Networking.Responses;
using POGOProtos.Inventory.Item;
using POGOProtos.Enums;
+using static System.Reflection.Assembly;
namespace PokemonGo.RocketAPI.Window
{
@@ -56,6 +56,15 @@ namespace PokemonGo.RocketAPI.Window
ClientSettings = Settings.Instance;
//Client.OnConsoleWrite += Client_OnConsoleWrite;
Instance = this;
+
+ Text = "RocketBot v" + GetExecutingAssembly().GetName().Version;
+ CenterToScreen();
+ }
+
+ public sealed override string Text
+ {
+ get { return base.Text; }
+ set { base.Text = value; }
}
private void MainForm_Load(object sender, EventArgs e)
@@ -143,7 +152,7 @@ namespace PokemonGo.RocketAPI.Window
match.Groups[3],
match.Groups[4]));
// makes sense to display your version and say what the current one is on github
- ColoredConsoleWrite(Color.Green, "Your version is " + Assembly.GetExecutingAssembly().GetName().Version);
+ ColoredConsoleWrite(Color.Green, "Your version is " + GetExecutingAssembly().GetName().Version);
ColoredConsoleWrite(Color.Green, "Github version is " + gitVersion);
ColoredConsoleWrite(Color.Green, "You can find it at www.GitHub.com/1461748123/Pokemon-Go-Rocket-API/releases");
}
diff --git a/PokemonGo/RocketAPI/Window/PokemonGo.RocketBot.csproj b/PokemonGo/RocketAPI/Window/PokemonGo.RocketBot.csproj
index 12b2531..cd5b61b 100644
--- a/PokemonGo/RocketAPI/Window/PokemonGo.RocketBot.csproj
+++ b/PokemonGo/RocketAPI/Window/PokemonGo.RocketBot.csproj
@@ -51,7 +51,7 @@
<HintPath>lib\GMap.NET.WindowsForms.dll</HintPath>
</Reference>
<Reference Include="Google.Protobuf">
- <HintPath>..\..\..\packages\Google.Protobuf.3.0.0-beta3\lib\dotnet\Google.Protobuf.dll</HintPath>
+ <HintPath>..\..\..\packages\Google.Protobuf.3.0.0-beta4\lib\net45\Google.Protobuf.dll</HintPath>
</Reference>
<Reference Include="ObjectListView, Version=2.9.1.1072, Culture=neutral, PublicKeyToken=b1c5bf581481bcd4, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\ObjectListView.Official.2.9.1\lib\net20\ObjectListView.dll</HintPath>
diff --git a/PokemonGo/RocketAPI/Window/Properties/AssemblyInfo.cs b/PokemonGo/RocketAPI/Window/Properties/AssemblyInfo.cs
index bb8d2be..45cb588 100644
--- a/PokemonGo/RocketAPI/Window/Properties/AssemblyInfo.cs
+++ b/PokemonGo/RocketAPI/Window/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 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.7.3.2")]
+[assembly: AssemblyVersion("1.8.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/RocketBot.sln b/RocketBot.sln
index 7259158..d3f4080 100644
--- a/RocketBot.sln
+++ b/RocketBot.sln
@@ -1,9 +1,12 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
-VisualStudioVersion = 14.0.25123.0
+VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PokemonGo.RocketBot", "PokemonGo\RocketAPI\Window\PokemonGo.RocketBot.csproj", "{C85B9D78-9CA3-4830-84CD-6B69090B987F}"
+ ProjectSection(ProjectDependencies) = postProject
+ {A03A7BB2-4F0B-467B-84B2-9A76E6AAE6FB} = {A03A7BB2-4F0B-467B-84B2-9A76E6AAE6FB}
+ EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PokemonGo.RocketAPI", "PokemonGo\RocketAPI\PokemonGo.RocketAPI.csproj", "{05D2DA44-1B8E-4CF7-94ED-4D52451CD095}"
EndProject
You may download the files in Public Git.