Click to Rate and Give Feedback
MSDN
MSDN Library
Online Services
Live Services SDK
 Creating a Content Source Plugin
Collapse All/Expand All Collapse All
Windows Live
Creating a Content Source Plugin

To create a new content source plugin:

Note:
Windows Live Writer supports both .NET 1.1 and .NET 2.0 and therefore does not require that .NET 2.0 be installed on end-user machines to run (if both versions of the .NET Framework are installed then Writer will use .NET 2.0). Therefore, if you choose to use Visual Studio 2005 for creating plugins you will need to ensure that end-users who install your plugin have .NET 2.0 installed (if they do not your plugin will silently fail to load).
  1. Create a new .NET Class Library project using Visual Studio 2003 (.NET 1.1), Visual Studio 2005 (.NET 2.0), or any other development environment that supports creating .NET assemblies.

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

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

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

  5. Decide which content creation sources your plugin will support and add the required attributes and method overrides:

  6. Add the following command to the Post Build event of your project (this will copy 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.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker