I’m trying to check the validity of a particular ‘stand-alone’ code file from within my C#.Net app. Is there any way that I can check the file and get a visual studio’s style errors list out?
I’m only interested in running a basic check to ensure that the basics would validate. I.e. all variables are declared and method names are valid.
Is this at all possible?
If it’s not the same as the referred to question (see my comment), you mention “VS style errors”, consider using the
CSharpCodeProvider. An example of its usage is in its documentation at MSDN.