# Plugin development

**URL:** <https://forum.log4view.com/t/plugin-development/77>\
**Category:** Log4View Support\
**Created:** [June 27, 2016, 6:34am UTC](https://forum.log4view.com/t/plugin-development/77 "2016-06-27T06:34:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [June 27, 2016, 6:34am UTC](https://forum.log4view.com/t/plugin-development/77/1 "2016-06-27T06:34:14Z")

</div>

Hello,

I do not know how to begin a plugin development so I wonder if there is a sample plugin somewhere.

Thanks

---

<div class="post-metadata">

**Author:** ![Philipp\_Lauchner](https://forum.log4view.com/user_avatar/forum.log4view.com/philipp_lauchner/32/8_2.png) [@Philipp\_Lauchner](https://forum.log4view.com/u/Philipp_Lauchner)\
**Post date:** [June 28, 2016, 7:41am UTC](https://forum.log4view.com/t/plugin-development/77/2 "2016-06-28T07:41:27Z")

</div>

Dear sinsedrix,

a sample plugin is available at the installation path of Log4View in the folder SampleDashboard repectively SampleReceiver. The API documentation is also at the installation path in the Help folder. More information can be found here:  
[http://www.log4view.com/support/documentation/](http://www.log4view.com/support/documentation/)

Yet our upcoming major release will switch from WinForms to WPF technology, requiring some adjustments to dashboard plugins written for the current version. Thus we advice you to develop your plugin to have its business logic connectable to a new view logic in an easy way.

Yours sincerely

Philipp Lauchner  
**PROSA GmbH**  
 Development & Support

---

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [June 28, 2016, 7:59am UTC](https://forum.log4view.com/t/plugin-development/77/3 "2016-06-28T07:59:29Z")

</div>

Ok thanks, I can see it now. But there are missing files in the projects :

- Log4View.dll
- app.config
- SampleReceiverKey.snk

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 29, 2016, 9:18am UTC](https://forum.log4view.com/t/plugin-development/77/4 "2016-06-29T09:18:05Z")

</div>

- You don’t need a Log4View.dll, but instead reference “Log4View.exe”. (In fact every .exe file is just a .dll plus some additional bootstrapping code.)

- app.config isn’t needed, just remove the reference.

- SampleReceiverKey.snk is missing because we cannot provide our private key file. Instead just create your own .snk file and use it. It isn’t necessary to use a special .snk file, it’s just necessary that your plugin is signed.

Ulrich

---

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [June 30, 2016, 6:06am UTC](https://forum.log4view.com/t/plugin-development/77/5 "2016-06-30T06:06:34Z")

</div>

Thanks, I could progress a bit.

Now I have the following error at compilation time :  
  
The type or namespace name ‘(Message|ICustomControlFactory|Extensibility|CustomControl)’ could not be found (are you missing a using directive or an assembly reference?)  
[/quote]

However when I reach their definition (F12) from the sample code, I can see these types in the Log4View.dll file (that I copied from Log4View.exe).

Do you have an idea of what is going wrong?

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 30, 2016, 8:13am UTC](https://forum.log4view.com/t/plugin-development/77/6 "2016-06-30T08:13:49Z")

</div>

You don’t have to copy Log4View.exe to Log4View.dll. You can directly reference Log4View.exe.  
This could be the reason why the compiler couldn’t find the namespace.

---

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [June 30, 2016, 8:21am UTC](https://forum.log4view.com/t/plugin-development/77/7 "2016-06-30T08:21:49Z")

</div>

No, I came back to the original name (+ clean, reload, regenerate). I still have the same compilation errors.

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 30, 2016, 8:32am UTC](https://forum.log4view.com/t/plugin-development/77/8 "2016-06-30T08:32:15Z")

</div>

Ok, I have just checked it by myself.  
You are right

You have to reference two additional dlls, both located near Log4View.exe:

- Log4View.Utils.dll
- Log4View.TelemetryInterface.dll

We forgot to update the reference project respectively.  
Sorry for this.

---

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [June 30, 2016, 8:39am UTC](https://forum.log4view.com/t/plugin-development/77/9 "2016-06-30T08:39:23Z")

</div>

I add these DLL as references of the projects (+ clean, reload, regenerate). I still have the same compilation errors.

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 30, 2016, 9:38am UTC](https://forum.log4view.com/t/plugin-development/77/10 "2016-06-30T09:38:59Z")

</div>

Does the plugin project use .NET Framework 4.6.1?

---

<div class="post-metadata">

**Author:** ![sinsedrix](https://forum.log4view.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sinsedrix](https://forum.log4view.com/u/sinsedrix)\
**Post date:** [July 1, 2016, 5:52am UTC](https://forum.log4view.com/t/plugin-development/77/11 "2016-07-01T05:52:31Z")

</div>

I had the .NET Framework 4.6.1 installed but not the corresponding [Developer Pack](https://blogs.msdn.microsoft.com/dotnet/2015/11/30/net-framework-4-6-1-is-now-available/). Now, it is done and I could properly launch the plugins into Log4View.

Thanks a lot.
