Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 17, 2025

EasyCodeBuilder v0.1.0 introduced a breaking API change from fluent builder pattern to configuration-based options. The README still documented the old API and incorrectly claimed Python/Lisp support.

Changes

API Documentation

  • Replaced all examples with v0.1.0 configuration-based approach using Code.Create() and option objects
  • Added examples for TypeOption, MethodOption, ConstructorOption, ForOption, SwitchOption
  • Documented the distinction between WithParameter() (singular, for constructors) and WithParameters() (plural, for methods)

Feature Scope

  • Removed Python and Lisp references (not in v0.1.x)
  • Updated features list to reflect configuration-based architecture

New Sections

  • Architecture table mapping components to option classes
  • Key Concepts explaining option-based configuration pattern

Example

Old (v0.0.x):

var code = new CSharpCodeBuilder()
    .Namespace("MyApp", ns => ns.Class("User", cls => cls.Property("string", "Name")))
    .ToString();

New (v0.1.0):

var code = Code.Create()
    .Namespace(ns => {
        ns.Name = "MyApp";
        ns.Class(cls => {
            cls.Name = "User";
            cls.AutoProperty(p => p.WithType("string").WithName("Name"));
        });
    })
    .Build();

All examples tested against actual v0.1.0 codebase.

Original prompt

This section details on the original issue you should resolve

<issue_title>UPDATE README</issue_title>
<issue_description>EasyCodeBuild has update to v0.1.0, should update readme since code builder api has changed</issue_description>

<agent_instructions>u can reference to test project to write instruction on how to use this code builder, we dont have python or lisp in 0.1.x</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 17, 2025 09:25
Co-authored-by: fengb3 <45181245+fengb3@users.noreply.github.com>
Co-authored-by: fengb3 <45181245+fengb3@users.noreply.github.com>
Copilot AI changed the title [WIP] Update README to reflect changes in EasyCodeBuild v0.1.0 Update README for v0.1.0 configuration-based API Dec 17, 2025
Copilot AI requested a review from fengb3 December 17, 2025 09:29
@fengb3 fengb3 marked this pull request as ready for review December 17, 2025 15:35
@fengb3 fengb3 merged commit 3e7908c into main Dec 17, 2025
8 checks passed
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.

UPDATE README

2 participants