Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Standardly
Standardly

Standardly

Preview

Christo du Toit

|
288 installs
| (2) | Free
A code generator that will allow you to generate various things in a 'The Standard' compliant way.
Download

Standardly

A Visual Studio extension that contains a multi-project template to quickly setup a new solution with an API, build, provision, unit and acceptance tests projects.

The extension will also let easily add BROKERS, FOUNDATION SERVICES, CONTROLLERS and ACCEPTANCE code to your project that are 'The Standard' compliant. All code gets checked in following TDD and branching conventions of 'The Standard'

Install instructions

  • Install the the extension from the Visual Studio Marketplace
  • Install the GitHub CLI commands
  • Install the CLI tools for Entity Framework Core
    • dotnet tool update --global dotnet-ef --version 6.0.8

Once the GitHub CLI commands is installed, you will need to run the following command to authenticate Git with with your GitHub credentials:

gh auth login -w

You will be issued with a one-time password that you will need to add on the webpage that will open once you press Enter. If you don't complete this step, Standardly will not be able to submit Pull Requests.

Who can use it?

The productivity tool is recommended for experienced developers.

If you can't write this code yourself, please invest the time first, to understand what it does, how to write the unit tests, how the exception handling and validation works, the TDD check-in process, naming conventions and things as defined in The Standard

Any shortcuts will just set you back as you would need this knowledge and experience later to create other things like Processing and Orchestration Services that are not included in Standardly.

What can it do?

  • A multi-project template will allow you to quickly setup a solution with skeleton projects
  • The code generation tool will allow you to quickly generate BROKERS, SERVICES (including unit tests), CONTROLLERS and ACCEPTANCE TESTS
    • 95% of the work done with just some small bits where you will need to do some manual coding
      • DATA: A basic model are generated, but you will need to extend with your own properties and update the migration
      • BROKERS: Will need to to add your navigation properties and other fluent configuration
      • FOUNDATIONS: Will need to to add validation rules for your properties if required. And if there are logical validation, you will need to write the tests for it.
      • CONTROLERS: You will need to do the DI registrations in Startup.cs

Multi-Project Template

The Visual Studio Extension will provide a Multi-Project template that can be used to quickly setup a Solution with all the projects you would need. Simply search for Standardly or set the project filter to Standardly to find the project template.

image.png

Then add your Solution Name in the Project Name text box, check the "Place solution and projects in the same directory" to ensure the folder structure is correct and click on Create ...

image__7.png

... which will then create the following skeleton projects

image__2.png

These projects only have the bare minimum in terms of setup. We will use the Code Generator to add code for each...

Code Generation

Configuration

The Code Generator support some configuration options that can be found in Visual Studio under TOOLS > OPTIONS > Standardly

image__8.png

The options help define some settings so that you would not need to repeatedly fill them out on the form.

  • General:

    • EditorConfig => Adds a .editorconfig file to ensure coding styles ins consistent. This will only be added if one does not exist and if the box is checked.
    • Gitignore => Adds a .gitignore file to the solution. This will only be added if one does not exist and if the box is checked.
    • Lincense => Adds a license file to the solution. This will only be added if one does not exist and if the box is checked.
    • Copyright => The copyright text. Default is MIT. This will also be used in the .editorconfig
    • Default Base Branch => The name of your base branch e.g. main / master
    • Display Name => The name to use in the copyright
    • GitHub Username => The username that will be used to create branches
  • Locations: Names that will be used to build a folder convention for storing the files within the project. This will help us adapt to potential changes in the future or this could also be used as a translation option for folder names if code needs to be scaffolded for a different language.

Generating Code

A new button is added to the context menu in Solution Explorer.

image__4.png

You can either click that button or use the keyboard shortcut Ctrl+Shift+F4 to get the the Code Generator.

  • Search for the template you want
  • Complete the required fields
  • Generate the code
  • Review the pull requests on GitHub

image__5.png

  • ProTip! If you want to scaffold code that follows on other code sets, you could tandem the branch creation process by changing the "Branch From" from main to the last create branch name i.e. if you created a broker you could use users/%username%/brokers-students-delete as the "Branch From" value. When you then generate code for a foundation service, users/%username%/foundations-students-add will then be branched of that instead of main

How can you help?

If you enjoy using the extension, please give it a rating on the Visual Studio Marketplace.

Should you encounter bugs or if you have feature requests, head on over to the GitHub repo to open an issue if one doesn't already exist.

Pull requests are also very welcome if you would like to help with bugs or new features that can benefit us as a 'The Standards' community.

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