Coder Social home page Coder Social logo

peternazarov / laubplusco.helix.vstemplates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laubplusco/laubplusco.helix.vstemplates

0.0 0.0 0.0 3.18 MB

Visual Studio extension that accelerates creating new Visual Studio solutions and projects that follow the conventions described in Sitecore Helix. Install extension from Visual Studio Marketplace

Home Page: https://marketplace.visualstudio.com/items?itemName=AndersLaublaubplusco.SitecoreHelixVisualStudioTemplates

License: Other

C# 92.33% PowerShell 7.67%

laubplusco.helix.vstemplates's Introduction

Sitecore Helix Module & Solution Templates for VisualStudio

Sitecore Helix Visual Studio Extensions Logo

Visual Studio extension that accelerates creating new Visual Studio solutions and projects that follow the conventions described in Sitecore Helix.

Install extension from Visual Studio Marketplace

Change log

2019-04-30 v0.9.9.14

  • Bug fix; relative folder path in .helixtemplates file fixed. Fix also allow templates on fileshare.
  • Added Website.PublishSingleItem.targets to example solution templates.

2019-04-26 v0.9.9.12

  • UI changes
    • Colors etc. now follow VS selected theme
    • Dialogs updated
    • New icons
    • New logo
  • Trace window added to ease debugging templates
  • Example templates
    • Bug fix: .user file not being loaded.
    • Change: renamed .props files to Website.* to reflect publish target instance role
  • Added tags for VS 2019 Create dialog, not supported yet in VS2019 but should be soon.

2019-04-10 v0.9.9.10

  • Added Visual Studio 2019 support
  • Added relative module folder path support
    • To support solution module templates to be under source control.
  • Various bug fixes
  • New example templates added out-of-the-box
    • See the Helix MS Build example here to learn more about the new templates that are now shipped as examples with the extension.
  • SkipAttach paths in manifest
    • enables setting up templates that include TDS projects

Please submit bugs, ideas and enhancement suggestions using Issues

Installation

The extension can be installed via Visual Studio Extensions and Updates

Visual Studio 2015, 2017 and 2019 are supported but the built-in module templates does not support being loaded in Visual Studio 2015. You will need to make your own templates or upgrade VS.

Important Note: You need to run Visual Studio as administrator to use this extension.
Guide to always start Visual Studio as administrator Right click a shortcut to Visual Studio

  • Select "Properties"
  • Click "Open File Location"
  • Right click "devenv.exe"
  • Select "Troubleshoot compatibility"
  • Select "Troubleshoot program"
  • Check "The program requires additional permissions"
  • Next, Test and Finish

When the extension has been installed a new project template is available under Visual C# templates.

In Visual Studio 2019 - Search for Helix to easily find the templates.

VS 2019 - Create new project dialog

Using the template for the first time you will be asked to select a root directory for storing your Helix templates. This directory can be changed at any time from the Settings dialog. When an empty root folder is selected you will be asked if you want to install the built-in templates.

Install default example templates

New: To keep your module templates under Source control you can add a solution-scope templates folder in your repo root. The extension will automatically try to detect if a folder exist and write a .helixtemplates configuration file with the relative folder path.

Relative module templates folder

New: The extension will ask if you like to create a solution-scope module templates folder if none exist already. You can also manually create the folder or use the global-scope templates folder for modules.

Module template folder auto-create

When selecting File > New Project the extension will presume that you are creating a new solution and filter the available templates so only solution templates are shown.

Creating a new module

To add a new module click Add New project in the solution explorer. Note that you do not have to right-click the location you want the module placed. It is the template folder structure that dictates where the module is placed.

Creating a new module

Always select the solution root folder when creating new modules. The template folder structure ensures that the module is placed correctly and will generate any missing folders.

Debugging Templates

You can use the new trace window to debug your templates.

Creating a new module

If a template is not being loaded, open the trace window and then reload the template selection combo box by opening and closing the settings dialog. Note, the trace window is always top-most and has to be closed manually after creation is done.

Footnotes

The included templates are only meant as examples - they can of course be used as is but please tailor the templates to match your customer solutions. Don't forget to think.

All code is released as open source under the ISC license.
Please remember to include the original license in any derivatives.
Anders Laub - [email protected]

laubplusco.helix.vstemplates's People

Contributors

anderslaub avatar af4jm avatar andrewwburns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.