Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>C# BootstrapperNew to Visual Studio Code? Get it now.
C# Bootstrapper

C# Bootstrapper

austinowensby

|
2,259 installs
| (0) | Free
Bootstraps a basic CRUD API based off of a C# model.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

csharp-bootstrapper README

C# Bootstrapper is currently a work in progress extension.

The goal is to add the ability to create a basic backend CRUD API as well as a frontend typescript service to handle the requests based off of existing C# models.

In addition it will have configurations allowing the API generation to be flexible and work with multiple different architect styles.

Features

Requirements

  1. Node package manager

Contribution

  • csharp-bootstrapper.convert-model: Converts the C# model to a typescript model at the configured folder.

  • csharp-boostrapper.boostrap-crud: Generates a CRUD workflow based on the configurations.

  • csharp-bootstrapper.settings: Displays a WebView GUI with the extension settings.

Environment Setup

How do we set up the environement?

  1. Run npm install

Conventions

Settings GUI

Each input should have the class "config" Also an id formatted similiar to the config section

Ex. config section = csharp-bootstrapper.backend.service.directory

<vscode-text-field id="backend-service-directory" class="config" value="${vscode.workspace.getConfiguration().get("csharp-bootstrapper.backend.service-directory")}">Service Directory</vscode-text-field>

Testing

How to test the extension?

Extension Settings

This extension contributes the following settings:

Frontend

Model

  • csharp-bootstrapper.frontend.model.directory: The directory that frontend typescript Model should be added.

Backend

Controller

  • csharp-bootstrapper.backend.controller.directory: The directory that backend C# Controller should be added.
  • csharp-bootstrapper.backend.controller.namespace: The namespace of the backend C# Controller.

Service

  • csharp-bootstrapper.backend.service.directory: The directory that backend C# Service should be added.
  • csharp-bootstrapper.backend.service.namespace: The namespace of the backend C# Service.
Interface
  • csharp-bootstrapper.backend.service.interface.directory: The directory that backend C# Service Interface should be added.
  • csharp-bootstrapper.backend.service.interface.namespace: The namespace of the backend C# Service Interface.

DB Context

  • csharp-bootstrapper.backend.dbcontext.name: The name of the Database Context class.
  • csharp-bootstrapper.backend.dbcontext.namespace: The namespace of the Database Context class.

Known Issues

  • Regex does not cover all cases for the C# class
  • Typescript model does not use C# class fields
  • Frontend service is not generated

Release Notes

0.0.0

Initial testing of publishing the extension

0.0.1 - 0.0.4

  • Scaffolding out of project. Added simple view and command to generate tpyescript template at a configured path.

0.0.5

  • Basic parsing of classes using Regex
  • Bootstrapping of Service, Service Interface, and Controller
  • Settings GUI

0.0.6 - 0.0.7

  • Fix path to webview javascript
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft