Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ShimmerAPI/ShimmerBLEGrpc/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using com.shimmerresearch.grpc;
using Google.Protobuf.Compiler;
using Grpc.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

Expand All @@ -12,7 +14,10 @@ class Program
{
static void Main(string[] args)
{

var version = Assembly.GetExecutingAssembly()
.GetName()
.Version;
Console.WriteLine($"Shimmer GRPC Server App Version: {version}");
int Port = 50052; // Port on which the server will listen
if (args.Length>0)
{
Expand Down
6 changes: 6 additions & 0 deletions ShimmerAPI/ShimmerBLEGrpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
When creating a new version of the GRPC Server, note that the version can be updated via .csproj file.
```
<PropertyGroup>
<Version>1.0.0</Version>
</PropertyGroup>
```
3 changes: 3 additions & 0 deletions ShimmerAPI/ShimmerBLEGrpc/ShimmerBLEGrpc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup>
<Version>1.0.0</Version>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
Expand Down
Loading