Unable to build my C# plugin
On trying to rebuild my own C# plugin (I only work on it occasionally) I am now getting the error below and I do not understand what I should be looking at to fix the problem. The plugin built successfully in the past, under Windows 7 with Visual Studio 2013. Since then I have changed to Windows 10 and get this error:
The “NppPlugin.DllExport.MSBuild.DllExportAppDomainIsolatedTask” task could not be loaded from the assembly C:\Adrian\VS\util\NppRewrite\NppRewrite_t0_7\DllExport\NppPlugin.DllExport.MSBuild.dll. Could not load file or assembly ‘Microsoft.Build.Utilities, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. C:\Adrian\VS\util\NppRewrite\NppRewrite_t0_7\DllExport\NppPlugin.DllExport.targets 42 5 NppRewrite_t0_7
What is the latest template for developing a plugin with C#? The C# template linked from the Wiki ( see http://docs.notepad-plus-plus.org/index.php/Plugin_Development ) contains files dated 2007, ie over 8 years old.
My plugin uses the template from https://bitbucket.org/uph0/npppluginnet/downloads/NppPlugin.NET.v0.7.zip
Unfortunately the C# plugin from the website is out dated and not maintained. I don’t know that much about developing in C# but I’d make sure that whatever framework you are building your plugin with that you check to see if that is installed on your machine. I know there are a few C# developers around so maybe they can point you in the right direction :)