Skip to content
Draft
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
19 changes: 11 additions & 8 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
release:
types: [created]
jobs:
publish-nuget:
publish-nuget:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v3
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
- name: Build solution and generate NuGet package
Expand All @@ -24,14 +26,15 @@ jobs:
cd out
dotnet nuget push "contentstack.model.generator.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json

publish-git:
publish-git:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v3
uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
source-url: https://nuget.pkg.github.com/Contentstack/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### Version: 1.0.0-beta.1
#### Date:

- Upgraded target framework from net7.0 to net10.0
- Updated CI/CD pipeline to use .NET 10 SDK (actions/setup-dotnet@v4)
- Updated Microsoft.AspNetCore.Mvc.Testing from 9.0.9 to 10.0.0
- Fixed GetHeader method visibility (private → internal) to allow test access

### Version: 0.5.1
#### Date: Jan-12-2026

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.9" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.2" />
Expand Down
2 changes: 1 addition & 1 deletion contentstack.model.generator/CMA/ContentstackClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public async Task<ContentstackResponse> GetGlobalFields(int skip = 0)
}
}

private Dictionary<string, object> GetHeader(Dictionary<string, object> localHeader)
internal Dictionary<string, object> GetHeader(Dictionary<string, object> localHeader)
{
Dictionary<string, object> mainHeader = _StackHeaders;
Dictionary<string, object> classHeaders = new Dictionary<string, object>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<PackageId>contentstack.model.generator</PackageId>
<Copyright>Copyright © 2012-2026 Contentstack. All Rights Reserved</Copyright>
<NeutralLanguage>en-US</NeutralLanguage>
Expand All @@ -13,9 +13,9 @@
<PackAsTool>true</PackAsTool>
<PackageOutputPath>./nupkg</PackageOutputPath>
<PackOnBuild>true</PackOnBuild>
<PackageVersion>0.5.1</PackageVersion>
<PackageVersion>1.0.0-beta.1</PackageVersion>
<Authors>Contentstack</Authors>
<ReleaseVersion>0.5.1</ReleaseVersion>
<ReleaseVersion>1.0.0-beta.1</ReleaseVersion>
<RootNamespace>Contentstack.Model.Generator</RootNamespace>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReleaseNotes>Improved Error messages</PackageReleaseNotes>
Expand Down
Loading