im writing my first plugin and try to develop step by step as SmartStore reference.
in first step create a project and add two file : Plugin.cs and Description.txt
and put breakpoint in plugin.cs
in runtime i got this warning on break point :
whats wrong?
and how can i attach project here?
--------------
using SmartStore.Core.Plugins;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using SmartStore.Core.Logging;
using SmartStore.Services.Configuration;
namespace SmartStore.FirstPlugin
{
public class Plugin : BasePlugin
{
private readonly ILogger _logger;
private readonly ISettingService _settingService;
public Plugin(ILogger logger,
ISettingService settingService)
{
this._logger = logger;
this._settingService = settingService;
}
public override void Install()
{
base.Install();
_logger.Info(string.Format("Plugin installed: SystemName: {0}, Version: {1}, Description: '{2}'", PluginDescriptor.SystemName, PluginDescriptor.Version, PluginDescriptor.FriendlyName));
}
public override void Uninstall()
{
base.Uninstall();
}
}
}