diff --git a/.github/workflows/nuget-publish.yml b/.github/workflows/nuget-publish.yml index fd41d0e..dfb6aef 100644 --- a/.github/workflows/nuget-publish.yml +++ b/.github/workflows/nuget-publish.yml @@ -11,18 +11,18 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - name: Setup .NET Core @ Latest - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.x' + uses: actions/setup-dotnet@v3 env: NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }} - name: Build solution and generate NuGet package run: | - cd contentstack-dotnet dotnet pack -c Release -o out - name: Push generated package to GitHub registry - run: dotnet nuget push ./contentstack-dotnet/out/*.nupkg --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true + run: | + cd out + ls + dotnet nuget push "contentstack.csharp.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json publish-git: runs-on: windows-latest @@ -30,16 +30,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - name: Setup .NET Core @ Latest - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: '3.1.x' source-url: https://nuget.pkg.github.com/Contentstack/index.json env: NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build solution and generate NuGet package run: | - cd contentstack-dotnet dotnet pack -c Release -o out - name: Push generated package to GitHub registry - run: dotnet nuget push ./contentstack-dotnet/out/*.nupkg --api-key $NUGET_AUTH_TOKEN --skip-duplicate --no-symbols true + run: | + cd out + dotnet nuget push "contentstack.csharp.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --no-symbols true --source https://api.nuget.org/v3/index.json diff --git a/Contentstack.AspNetCore/Contentstack.AspNetCore.csproj b/Contentstack.AspNetCore/Contentstack.AspNetCore.csproj index f21b0d6..2c9df14 100644 --- a/Contentstack.AspNetCore/Contentstack.AspNetCore.csproj +++ b/Contentstack.AspNetCore/Contentstack.AspNetCore.csproj @@ -6,17 +6,18 @@ contentstack.aspnetcore Contentstack Contentstack - 2.12.0 + $(Version) Main release Copyright (c) 2012-2024 Contentstack (http://app.contentstack.com). All Rights Reserved https://github.com/contentstack/contentstack-dotnet - v2.12.0 - 2.12.0 + v$(Version) + $(Version) Release;Debug - + None + false @@ -24,11 +25,11 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj b/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj index 9aef7ea..3fc0fee 100644 --- a/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj +++ b/Contentstack.Core.Tests/Contentstack.Core.Tests.csproj @@ -8,14 +8,14 @@ - - - runtime; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Contentstack.Core.Tests/StackConfig.cs b/Contentstack.Core.Tests/StackConfig.cs index 23bc494..c0df3cc 100644 --- a/Contentstack.Core.Tests/StackConfig.cs +++ b/Contentstack.Core.Tests/StackConfig.cs @@ -38,7 +38,7 @@ public static ContentstackClient GetStack() Environment = environment, Host = host, Timeout = 4500, - Proxy = new System.Net.WebProxy("http://example.com:8080") + //Proxy = new System.Net.WebProxy("http://example.com:8080") }; ContentstackClient contentstackClient = new ContentstackClient(new OptionsWrapper(contentstackOptions)); diff --git a/Contentstack.Core/Contentstack.Core.csproj b/Contentstack.Core/Contentstack.Core.csproj index eada550..7583d3e 100644 --- a/Contentstack.Core/Contentstack.Core.csproj +++ b/Contentstack.Core/Contentstack.Core.csproj @@ -13,13 +13,15 @@ v$(Version) https://github.com/contentstack/contentstack-dotnet LICENSE.txt + README.md $(Version) - + None + false @@ -27,9 +29,9 @@ - - - + + + @@ -39,7 +41,7 @@ CHANGELOG.md - + README.md diff --git a/Contentstack.Core/Models/Query.cs b/Contentstack.Core/Models/Query.cs index cc4226f..b568694 100644 --- a/Contentstack.Core/Models/Query.cs +++ b/Contentstack.Core/Models/Query.cs @@ -125,7 +125,7 @@ internal static ContentstackException GetContentstackError(Exception ex) internal void SetContentTypeInstance(ContentType contentTypeInstance) { this.ContentTypeInstance = contentTypeInstance; - SetLocale("en-us"); + //SetLocale("en-us"); } #endregion