Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ProtonNet Template for vscodeNew to Visual Studio Code? Get it now.
ProtonNet Template for vscode

ProtonNet Template for vscode

XmobiTea Family

|
70 installs
| (0) | Free
Extension for vscode support for create solution template WebApiServer, SocketServer, or item template RequestHandler, EventHandler...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitHub release License GitHub star chart

ProtonNet Template for Visual Studio Code

Welcome to the ProtonNet template for Visual Studio Code!
This tool is designed to streamline and optimize the development process for projects within the ProtonNet Server ecosystem.

I. How to install

Two way to install ProtonNet Template for Visual Studio Code, using Visual Studio Code:

  • Install via Marketplace Extensions
    1. open View/Extensions
    2. type ProtonNet in Search Extensions in Marketplace, then Enter
    3. press Install

alt text

  • Install from VSIX
    1. open View/Extensions
    2. download the newest release (example protonnet-1.0.2.vsix) ProtonNet Template for Visual Studio Code Release
    3. press Install from VSIX... like this picture then choose ProtonNet Template version, which you has download on step 2.

alt text

II. Features

  • Create SocketServer Project (for building SocketServer applications).

  • Create WebApiServer Project (for building WebApiServer applications).

  • EventHandler: Create a handler class to process events from the client (specific to SocketServer).

  • RequestHandler: Create a handler class to process requests from the client.

  • WebApiController: Create a controller class to handle API requests or browser access (specific to WebApiServer).

  • WebApiHtml: Generate an HTML view for the web API (specific to WebApiServer).

III. Requirements

  • If your project uses .NET Core: Download .NET here: Download .NET
  • If your project uses .NET Framework: Download .NET Framework here: Download .NET Framework

IV. Getting Started

Creating a Project

  1. Right-click on the root folder and select [Proton Net] Create New Solution.

alt text

  1. On the Configure your new project screen:
    • Select the Project Type you need: SocketServer Solution for a SocketServer project or WebApiServer Solution for a WebApiServer project. In this guide, we will demonstrate how to create a SocketServer Solution.
    • Enter your Project Name (e.g., MyFirstSocketServer).
    • Choose the Location for your project (we recommend leaving it as the default).
    • Select the ProtonNetVersion from the available releases (see more ProtonNet Releases).
    • Set the Target Runtime for your project. We recommend using .NET 8.0.
    • Click Create to generate your project.

alt text

  1. After successful creation, your screen will look like this:

alt text

  1. To test it out, click Run/Start Debugging (F5).

alt text

  1. After a successful build, you will see the following output in the View/Debug Console:

alt text

  1. To stop debugging, click Run/Stop Debugging. Enjoy!

Adding an Item

  1. Right-click on the MyFirstSocketServer\MyFirstSocketServer\Handlers\EventHandlers folder and select [Proton Net] Add New Item (EventHandler) to add a new EventHandler. Follow the same process for RequestHandler, WebApiController, or WebApiHtml depending on your needs.

    Enter MyFirstEventHandler as the Name, check With Model, leave the Location as default, and click Create.

alt text

  1. After successful creation, you will see a new file as shown:

alt text

  1. Add your logic to the Handle() method and you're all set!

V. Release Notes

Version 1.0.0

  • ProtonNet Tool Support:

    • Support for creating SocketServer projects under the ProtonNet Server ecosystem.
    • Support for creating WebApiServer projects under the ProtonNet Server ecosystem.
  • File Generators:

    • Quickly and easily generate WebApiController files.
    • Generate EventHandler files to handle application events.
    • Generate RequestHandler files for managing and processing requests.
    • Generate WebApiHtml files for building web API interfaces.

Enjoy your development with ProtonNet!

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