Skip to content

Commit

Permalink
version increase; use plugin version instead of independent versions
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-photo committed Jan 9, 2025
1 parent cdb3e20 commit 09e0ead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ninaAPI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

// [MANDATORY] The assembly versioning
//Should be incremented for each new build of a plugin
[assembly: AssemblyVersion("2.1.0.5")]
[assembly: AssemblyFileVersion("2.1.0.5")]
[assembly: AssemblyVersion("2.1.0.6")]
[assembly: AssemblyFileVersion("2.1.0.6")]

// [MANDATORY] The name of your plugin
[assembly: AssemblyTitle("Advanced API")]
Expand Down
3 changes: 2 additions & 1 deletion ninaAPI/WebService/V2/ControllerV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This Source Code Form is subject to the terms of the Mozilla Public

#endregion "copyright"

using System.Reflection;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;
Expand All @@ -30,7 +31,7 @@ public string Index()
public void GetVersion()
{
Logger.Debug($"API call: {HttpContext.Request.Url.AbsoluteUri}");
HttpContext.WriteToResponse(new HttpResponse() { Response = "2.0.0.0" });
HttpContext.WriteToResponse(new HttpResponse() { Response = Assembly.GetAssembly(typeof(AdvancedAPI)).GetName().Version.ToString() });
}
}
}

0 comments on commit 09e0ead

Please sign in to comment.