Since I set the post-build event in the ASP.NET Web Application project to run the following command line.
start $ (SolutionDir) [PathToMyApplicationInSameSolution] [some parameter]
Therefore, I need to send some error from the console application to Visual Studio to display the build error (for example, Visual Studio build error)
thanks
So, I change the post-build event command to the next command.
$ (SolutionDir) [PathToMyApplicationInSameSolution] [some parameter]
And then I edit the main function to display the error. I do not see anything in the error list in Visual Studio. I see only in Output. Do you know how to display an error such as a build error generated by Visual Studio?
[STAThread] static void Main(string[] args) { Console.Error.WriteLine("Test Error"); Console.WriteLine("test error"); }
thanks
Ps. Because I'm new to using the command-line application, so I forgot what to start, how to create a new thread for the console application.
source share