I seem to be having an issue with the NppExec plugin for Notepad++. I'm new to coding in the Windows environment, so it's conceivable I'm missing something fairly obvious.
A few days ago, I got the NppExec plugin to work on Notepad++. In the NppExec plugin, under the "Execute" window, I have this saved:
"c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe" /out:"$(FULL_CURRENT_PATH).exe" "$(FULL_CURRENT_PATH)"
"$(FULL_CURRENT_PATH).exe"
When I compile the C# code for the first time, everything works as it should. If I were to make a small change- something as simple as writing
Console.WriteLine("testing: 1,2,3");
in the bottom of the Main method, the Notepad++ software does not tell the compiler to recompile the file. In stead, executing the code again simply runs the past version (even despite saving my changes) of my code all over again.
Does anyone understand why this is happening, and what I can do to have Notepad++ tell the compiler to recompile the file?
Thank you in advance.
I have two approaches for you:
1. Improve your Npp Exec script to dump $(FULL_CURRENT_PATH)
file somewhere before compiling.
cmd /c copy "$(FULL_CURRENT_PATH)" "$(CURRENT_DIRECTORY)\currentfile.txt"
2. You do not need to purchase Visual Studio. (Just download and use like Notepad++.)
You can download and use Visual Studio Community Edition if your company has up to 250 computers and up to 5 developers using it (see §1.b thereof).
You can download and use Visual Studio Code, an edition which is always free. Pretty limited functionality, but with C#, it has still impressive set of features which Notepad++ cannot match.