Skip to content

fix(7350): Fixed the document required NuGet packages for generated code#38

Closed
OMpawar-21 wants to merge 2 commits into
developmentfrom
fix/DX-7350
Closed

fix(7350): Fixed the document required NuGet packages for generated code#38
OMpawar-21 wants to merge 2 commits into
developmentfrom
fix/DX-7350

Conversation

@OMpawar-21

Copy link
Copy Markdown

Problem

The generator emits using directives for external packages
(contentstack.csharp, contentstack.utils, Newtonsoft.Json, Markdig)
but never told consumers to install them, causing build failures with no
actionable guidance.

Changes

  • README.md — Added a "Required NuGet Packages" section with
    copy-paste dotnet add package commands and a package-to-namespace
    reference table.
  • ModelGenerator.cs — Added an <auto-generated> comment block at
    the top of every generated .cs file listing the required packages.
    Also fixed using Markdig; ordering in CreateStringHelperClass so
    the comment always appears as the first line.

Impact

No functional or breaking changes. Documentation and generated file
headers only.

Add <auto-generated> comment header to all generated .cs files listing
the four required NuGet packages (contentstack.csharp, contentstack.utils,
Newtonsoft.Json, Markdig). Add a "Required NuGet Packages" section to
README.md with copy-paste install commands and a package-to-namespace
reference table.
reeshika-h
reeshika-h previously approved these changes Jun 2, 2026

@reeshika-h reeshika-h left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@OMpawar-21

Copy link
Copy Markdown
Author

This PR is no more valid, because it was a doc error, and customer query has been resolved over here -> #20

CC: @netrajpatel , @reeshika-h , @Aravind-Kumar-cstk , @cs-raj

@OMpawar-21 OMpawar-21 closed this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants