Skip to content

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

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

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
Copy link
Copy Markdown
Contributor

@reeshika-h reeshika-h left a comment

Choose a reason for hiding this comment

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

lgtm

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