in
Java, you can write:
public static void Main(String[] args) { }
and than “right click” => “run as” => “Java application” and it will run the current Main Method.
Any chance to have that in Visual Web Developer?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Visual Web Developer is presumably for web applications. Web applications don’t run in that sort of way – they respond to web requests.
The equivalent of a
mainmethod (note case) in Java is aMainmethod in C#, in one of the following forms:The method can have any accessibility, can return
intorvoid, and either be parameterless or take an array of strings.That will work fine when creating a console or Windows application – but not a web application. If you want to write desktop applications, use Visual C# Express or something similar.