Community
    • Login

    CS-SCRIPT problem after rebuilding machine.

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    cs-script
    2 Posts 2 Posters 740 Views 1 Watching
    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.
    • Pat Sinclair 0P Offline
      Pat Sinclair 0
      last edited by

      Greetings All:
      Recently had to rebuild my machine, working on restoring NPP and CS-SCRIPT code that I use for automation.
      Currently getting the error:
      error CS0246: The type or namespace name ‘NppScripts’ could not be found (are you missing a using directive or an assembly reference?)

      At the top of my scripts I have the following:
      //css_ref C:\Program Files\Notepad++\plugins\NppScripts\NppScripts.dll
      //css_ref C:\Program Files\Notepad++\plugins\NppScripts\NppScripts\NppScripts.asm.dll
      using NppScripts
      I tried changing it to the following as the old plugin was updated to Version 2.0.3.0:

      //css_ref C:\Program Files\Notepad++\plugins\CSScriptNPP\CSScripts.dll
      //css_ref C:\Program Files\Notepad++\plugins\CSScriptNpp\CSScriptNpp\CSScripts.asm.dll
      using CSScripts;

      Now it just states unable to find CSScripts…

      Can someone please help, I am not able to figure out how to solve this, I use things like Editor.GetCurrentFilePath() which required the NppScripts using.

      Thanks in advance for any and all feedback.
      Regards,
      Pat

      Mark OlsonM 1 Reply Last reply Reply Quote 0
      • Mark OlsonM Offline
        Mark Olson @Pat Sinclair 0
        last edited by

        @Pat-Sinclair-0
        Go to repo with plugin issue if you haven’t already.

        if I had a penny for every time I said something like this to somebody posting about a plugin issue on the community forum… (don’t worry OP, I’m not mad at you, just amused at how often I say something to this effect)

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors