diff --git a/src/Amazon.SecretsManager.Extensions.Caching/Amazon.SecretsManager.Extensions.Caching.csproj b/src/Amazon.SecretsManager.Extensions.Caching/Amazon.SecretsManager.Extensions.Caching.csproj
index 7dda3be..38672ea 100644
--- a/src/Amazon.SecretsManager.Extensions.Caching/Amazon.SecretsManager.Extensions.Caching.csproj
+++ b/src/Amazon.SecretsManager.Extensions.Caching/Amazon.SecretsManager.Extensions.Caching.csproj
@@ -29,4 +29,30 @@
runtime; build; native; contentfiles; analyzers
+
+
+
+ $(PackageVersion.Split('.')[0])
+ $(PackageVersion.Split('.')[1])
+ $(PackageVersion.Split('.')[2])
+ $(IntermediateOutputPath)VersionInfo.g.cs
+
+
+
+
+
+
+
diff --git a/src/Amazon.SecretsManager.Extensions.Caching/VersionInfo.cs b/src/Amazon.SecretsManager.Extensions.Caching/VersionInfo.cs
index 6f818f1..7ddf126 100755
--- a/src/Amazon.SecretsManager.Extensions.Caching/VersionInfo.cs
+++ b/src/Amazon.SecretsManager.Extensions.Caching/VersionInfo.cs
@@ -1,53 +1,2 @@
-/*
- * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
- * the License. A copy of the License is located at
- *
- * http://aws.amazon.com/apache2.0
- *
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
- * and limitations under the License.
- */
-
-namespace Amazon.SecretsManager.Extensions.Caching
-{
- internal static class VersionInfo
- {
- ///
- /// Incremented for design changes that break backward compatibility.
- ///
- public const string VERSION_NUM = "1";
-
- ///
- /// Incremented for major changes to the implementation
- ///
- public const string MAJOR_REVISION_NUM = "1";
-
- ///
- /// Incremented for minor changes to the implementation
- ///
- public const string MINOR_REVISION_NUM = "0";
-
- ///
- /// Incremented for releases containing an immediate bug fix.
- ///
- public const string BUGFIX_REVISION_NUM = "0";
-
- ///
- /// The value used as the user agent header name.
- ///
- public const string USER_AGENT_HEADER = "User-Agent";
-
- ///
- /// The release version string.
- ///
- public static readonly string RELEASE_VERSION = $"{VERSION_NUM}.{MAJOR_REVISION_NUM}.{MINOR_REVISION_NUM}.{BUGFIX_REVISION_NUM}";
-
- ///
- /// The user agent string that will be appended to the SDK user agent string
- ///
- public static readonly string USER_AGENT_STRING = $"AwsSecretCache/{RELEASE_VERSION}";
- }
-}
+// This file is auto-generated during build from PackageVersion in the .csproj file.
+// Do not edit manually. See GenerateVersionInfo target in Amazon.SecretsManager.Extensions.Caching.csproj