Export (0) Print
Expand All
3 out of 3 rated this helpful - Rate this topic

Creating a Plugin

To create a new content source plugin:

Aa702851.note(en-us,WIN.10).gifNote:
Windows Live Writer requires Microsoft .NET Framework 2.0 or later to run. Writer supports plugins that use .NET Framework 1.1 or 2.0.
  1. Create a new .NET Class Library project.

  2. Add a reference to the WindowsLive.Writer.Api assembly (located in C:\Program Files\Windows Live\Writer).

  3. Create a new class that is derived from one of the two content source base classes (ContentSource or SmartContentSource).

  4. Apply the WriterPluginAttribute attribute to the new class. Optionally, if you want an image to appear next to your plugin in the Writer user interface, you can specify the WriterPluginAttribute.ImagePath property as part of this attribute.

  5. Decide which content-creation sources your plugin is to support and add the required attributes and method overrides as shown in the following list:

  6. Add the following command to the Post Build event of your project. This step copies your plugin to the Writer plugins directory after it is built.

    XCOPY /D /Y /R "$(TargetPath)" "C:\Program Files\Windows Live\Writer\Plugins\"
    
  7. Build your plugin and then run Windows Live Writer to test and debug it.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.