none
“A project with an Output type of Class Library cannot be started directly” and CS103 error and CS1061 errors RRS feed

  • Question

  • Hi,

    I have few questions 

    1. I'm getting this eeror when I click "Start" button

    

    “A project with an Output type of Class Library cannot be started directly”

    2. Also i'm tryind to put a wait command in my automation ( Selenium and C#)

    driver.manage().timeouts().implicitlyWait(TimeOut, TimeUnit.10);

    CS1061 and CS103 errors prompted


    Thursday, October 17, 2019 3:31 AM

All replies

  • Greetings Shu Sam.

    The first error means you are creating a dll or a lib. These are files that can be called by executables, but they are not executable themselves.

    You will have to give us some more details about the other errors. They probably mean that one of the methods called on that line does not exist. The full error text should say which one.


    • Edited by Ante Meridian Thursday, October 17, 2019 4:55 AM typo
    Thursday, October 17, 2019 4:54 AM
  • The error message means that the project is set to be the StartUp project, which is most likely a classlib project, and the project can't be the StartUp project that Visual Stuido is trying to start.
    Thursday, October 17, 2019 10:47 AM