• Login
Community
  • Login

Unable to build my C# plugin

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
2 Posts 2 Posters 3.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    AdrianHHH
    last edited by Jan 15, 2016, 12:16 PM

    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=2.0.0.0, 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

    1 Reply Last reply Reply Quote 0
    • D
      dail
      last edited by Jan 15, 2016, 1:27 PM

      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 :)

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors