Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>pnb-codegenNew to Visual Studio Code? Get it now.
pnb-codegen

pnb-codegen

PNB-Codegen

|
12 installs
| (0) | Free
Generates TypeScript types from C# entities.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pnb-codegen

Description: Generates TypeScript types from C# entities, streamlining the development process between C# backend and TypeScript frontend.

Features

This extension provides the following commands to assist in your development workflow:

  • PNB: Gerar JSON das Entidades C#: Scans your C# project (.csproj) to extract entity definitions and generates a entities.json file. This JSON file serves as an intermediary for type generation.
  • PNB: Gerar Tipos TypeScript a partir do JSON: Takes the entities.json file and generates corresponding TypeScript type definition files (.d.ts), ensuring type safety and consistency in your frontend applications.

Usage

  1. Generate JSON from C# Entities:

    • Right-click on your .csproj file in the VS Code Explorer.
    • Select "PNB: Gerar JSON das Entidades C#".
    • An entities.json file will be created in your project.
  2. Generate TypeScript Types from JSON:

    • Right-click on the entities.json file in the VS Code Explorer.
    • Select "PNB: Gerar Tipos TypeScript a partir do JSON".
    • TypeScript definition files (.d.ts) will be generated based on the JSON content.

Requirements

  • .NET SDK (for C# scanning)
  • Node.js (for TypeScript generation)

Release Notes

0.0.1

Initial release of pnb-codegen.


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft