1%YAML 1.2 2--- | 3 #region Copyright notice and license 4 5 // Copyright 2015 gRPC authors. 6 // 7 // Licensed under the Apache License, Version 2.0 (the "License"); 8 // you may not use this file except in compliance with the License. 9 // You may obtain a copy of the License at 10 // 11 // http://www.apache.org/licenses/LICENSE-2.0 12 // 13 // Unless required by applicable law or agreed to in writing, software 14 // distributed under the License is distributed on an "AS IS" BASIS, 15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 // See the License for the specific language governing permissions and 17 // limitations under the License. 18 19 #endregion 20 21 namespace Grpc.Core 22 { 23 /// <summary> 24 /// Provides info about current version of gRPC. 25 /// See https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/ 26 /// for rationale about assembly versioning. 27 /// </summary> 28 public static class VersionInfo 29 { 30 /// <summary> 31 /// Current <c>AssemblyVersion</c> attribute of gRPC C# assemblies 32 /// </summary> 33 public const string CurrentAssemblyVersion = "1.0.0.0"; 34 35 /// <summary> 36 /// Current <c>AssemblyFileVersion</c> of gRPC C# assemblies 37 /// </summary> 38 public const string CurrentAssemblyFileVersion = "${settings.version.major}.${settings.version.minor}.${settings.version.patch}.0"; 39 40 /// <summary> 41 /// Current version of gRPC C# 42 /// </summary> 43 public const string CurrentVersion = "${settings.csharp_version}"; 44 } 45 } 46