Community
    • Login

    Notepad++ CS-Script Compilation Error

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 3 Posters 4.4k Views 2 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.
    • Julian AungJ Offline
      Julian Aung
      last edited by

      I just installed CS-Script on my notepad++ and when I run any code this error pops up in the output:

      Error: Specified file could not be compiled.
      System.MissingMethodException: Method not found: ‘!!0[] System.Array.Empty()’. at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.TraceCompilerInput(String cmdLine) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters options, String compilerFullPath, String arguments, String& outputFile, Int32& nativeReturnValue) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) at csscript.CSExecutor.CompileAssembly(ICodeCompiler compiler, CompilerParameters compilerParams, String[] filesToCompile) at csscript.CSExecutor.Compile(String scriptFileName) at csscript.CSExecutor.ExecuteImpl()

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Julian Aung
        last edited by

        @Julian-Aung

        I’m not using csharp very often but could it be that you haven’t saved the file you
        want to compile beforehand?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Julian AungJ Offline
          Julian Aung
          last edited by Julian Aung

          I have already saved that file.When, I tried to save it again it says "The file is already opened in notepad++."So, I overwrote that file on top of another file and compiled but failed. :(

          1 Reply Last reply Reply Quote 0
          • chcgC Offline
            chcg
            last edited by

            Which version of https://github.com/oleg-shilo/cs-script.npp/releases and which N++ version on which windows version?

            1 Reply Last reply Reply Quote 0
            • Julian AungJ Offline
              Julian Aung
              last edited by

              Notepad: 7.5.4
              CS-Script: 1.7.8.0
              Windows 7 Ultimate Service Pack 1

              1 Reply Last reply Reply Quote 0
              • chcgC Offline
                chcg
                last edited by

                As you are using the current release I think creating an new issue at https://github.com/oleg-shilo/cs-script.npp/issues makes sense.

                1 Reply Last reply Reply Quote 0
                • Julian AungJ Offline
                  Julian Aung
                  last edited by

                  Thanks, I will create a new issue then.

                  1 Reply Last reply Reply Quote 0
                  • Julian AungJ Offline
                    Julian Aung
                    last edited by

                    P.S: I think this issue occur because of the latest release of both NP++ and CS-Script this didn’t happen in the previous versions of NP++.If I remembered correctly, CS-Script worked just fine with the NP++ plugin manager pre-installed version.

                    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