I downloaded the zip source files containing a C # project with multiple input points / Basic methods. Since I wanted to mess around, I created another similar one in a new type / class
class MyExperiments { static void Main(String[] args) {
then I switched to project properties. Just switch the launch object to MyExperiments, huh? To my surprise, this was not the drop-down list. I rebuilt, made the method public, tried a lot of everything ... but to no avail. Finally, I edited the .csproj file manually in notepad, and then it worked. After a bit of work, I deleted the settings to do this
static void Main()
and now VS Project properties can “see” the launch object. So now I can select it using the drop-down list. Then I added the line [] back and it still worked.
It seems a little strange to me (because the most common form is the Main method with command line argument parameters from C / C ++ times). MSDN says that the drop-down list will contain valid startup objects if they exist in your project.
source share