Is it possible to extend the web matrix with plugins?

The new web matrix is โ€‹โ€‹a cool and free development environment. Are there any extensions to add new features?

+3
source share
4 answers

WebMatrix does not support extensibility (e.g. plugins) in version 1.0.

+1
source

With Webmatrix 2.0 Beta, and then there is an extension environment for adding โ€œExtensionsโ€. The API is pretty straightforward at present, but it looks like you can create any arbitrary managed code and include it in your constructor, where you inherit the Microsoft.WebMatrix.Extensibility.IExtension interface.

Here is a snippet to help you get started with my simple extension:

[Export(typeof(IExtension))]
public class UmbracoExtension :  IExtension
{
    public IEnumerable<IDashboardItem> DashboardItems
    {
        get { return null; }
    }
    public string Name
    {
        get { return "Extension"; }
    }
    public string Version
    {
        get { return "1.0"; }
    }
    private IRibbonGroup _ribbonGroup;
    private IWebMatrixHost _webMatrixHost;
    private List<IRibbonItem> _ribbonItems;

    public IEnumerable<IRibbonItem> RibbonItems
    {
...
    }


    [Import(typeof(IWebMatrixHost))]
    private IWebMatrixHost WebMatrixHost
    {
...
    }

-Paul

+5
source

, WebMatrix 2.0, , CMS.

+1

Clinton: You can comment and uncomment lines using the keyboard shortcuts Ctrl-KC and Ctrl-KU.

Others: for more information on extensibility: http://extensions.webmatrix.com/documentation

0
source

Source: https://habr.com/ru/post/1791526/


All Articles