If we give it a C# file, a .CS , is it able to compile it and say for example a “;” is missing at line 12 of your code? In a form that later in my program – which is Java RCP app, I can show those compile errors in a Spreadsheet
How about MSBuild? Is that able to show compile errors same as my previous example?
Say this is your code (program.cs):
You can call
csc program.csand receive the following outputAlternatively you can use msbuild to achieve the exact same result! Here is the content of
build.msbuildYou can then call your msbuild file with varying levels of verbosity, as shown.
msbuild build.msbuild /verbosity:quietandmsbuild build.msbuild /verbosity:minimalmsbuild build.msbuild /verbosity:normal:The remaining two verbosity levels are detailed and diagnostic and they present even more information if you want it. I’m not sure how much information you want for your spreadsheet, but hopefully one of these works for you.