diff --git a/.codegen.json b/.codegen.json index dd6e466c..390da8aa 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "332479b", "specHash": "b2f7568", "version": "0.1.0" } +{ "engineHash": "be0f8b2", "specHash": "b2f7568", "version": "0.1.0" } diff --git a/.versionrc b/.versionrc new file mode 100644 index 00000000..ca2ea307 --- /dev/null +++ b/.versionrc @@ -0,0 +1,34 @@ +{ + "types": [ + { + "type": "feat", + "section": "New Features and Enhancements", + "hidden": false + }, + { + "type": "fix", + "section": "Bug Fixes", + "hidden": false + }, + { + "type": "chore", + "hidden": true + }, + { + "type": "docs", + "hidden": true + }, + { + "type": "style", + "hidden": true + }, + { + "type": "refactor", + "hidden": true + }, + { + "type": "test", + "hidden": true + } + ] +} diff --git a/Box.Sdk.Gen/Box.Sdk.Gen.csproj b/Box.Sdk.Gen/Box.Sdk.Gen.csproj index d852ff54..2443b98e 100644 --- a/Box.Sdk.Gen/Box.Sdk.Gen.csproj +++ b/Box.Sdk.Gen/Box.Sdk.Gen.csproj @@ -2,7 +2,7 @@ net6.0 - 2.0.0 + 0.1.0 [Box Platform](https://box.dev) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies. Apache-2.0 enable diff --git a/Box.Sdk.Gen/Networking/SdkConsts.cs b/Box.Sdk.Gen/Networking/SdkConsts.cs index 6c9e5252..7a97acc6 100644 --- a/Box.Sdk.Gen/Networking/SdkConsts.cs +++ b/Box.Sdk.Gen/Networking/SdkConsts.cs @@ -4,10 +4,9 @@ namespace Fetch { internal static class SdkConsts { - static string SdkVersion = "0.1.0"; static string RunTimeVersion = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription; - static KeyValuePair UserAgentHeader = new KeyValuePair("User-Agent", $"box-dotnet-generated-sdk/{SdkVersion}"); + static KeyValuePair UserAgentHeader = new KeyValuePair("User-Agent", $"box-dotnet-generated-sdk/{Version.sdkVersion}"); static KeyValuePair BoxUAHeader = new KeyValuePair("X-Box-UA", $"agent={UserAgentHeader.Value}; env=dotnet/{RunTimeVersion}"); internal static List> AnalyticsHeaders = new List>() { UserAgentHeader, BoxUAHeader }; diff --git a/Box.Sdk.Gen/Networking/Version.cs b/Box.Sdk.Gen/Networking/Version.cs new file mode 100644 index 00000000..c02a655d --- /dev/null +++ b/Box.Sdk.Gen/Networking/Version.cs @@ -0,0 +1,9 @@ +using System; + +namespace Fetch +{ + public static class Version + { + public static string sdkVersion = "0.1.0"; + } +}