RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Error when launching: "A project with an Output Type of Class Library cannot be started directly"

Open Ryah opened this issue 10 years ago • 13 comments

8bec4de701e265a656c099a95b5efa32

I apologize if this is a simple fix. I tried building as a Release but there was no executable in the folder after I built it. I'm new at Visual Studio so I'm not quite sure what this means or how to fix this. Any help would be greatly appreciated!

Just to note: I did read and try to understand the error message, I'm just not sure how to get around it. As far as I can tell, it means I can't open it because it's not a console app, correct me if I'm wrong please!

Ryah avatar Jul 23 '16 18:07 Ryah

Also having this issue, probably has something to do with the windowed mode which appears to be in progress.

indiandennis avatar Jul 23 '16 18:07 indiandennis

i get this error too :o:

AluTa49 avatar Jul 23 '16 18:07 AluTa49

I have this message too

Techio44 avatar Jul 23 '16 19:07 Techio44

Right click either PokemonGo.RocketAPI.Console or PokemonGo.RocketAPI.Window -> Set as StartUp project

DetectiveSquirrel avatar Jul 23 '16 19:07 DetectiveSquirrel

Already did that, didnt work

Oh wait, why did it work now? never mind, thanks.

AluTa49 avatar Jul 23 '16 19:07 AluTa49

Thanks detectivesquirrel, it seems to work

Techio44 avatar Jul 23 '16 19:07 Techio44

Worked for me as well, thanks!

indiandennis avatar Jul 23 '16 19:07 indiandennis

If squirrel's solution doesn't work. check if the project itself changed.

Right click "Solution "Pokemon Go Rocket API" > Properties Change the Single startup project to Console or Window.

TinyRickMF avatar Jul 23 '16 19:07 TinyRickMF

Using the console works, but when I try to run it though PokemonGo.RocketAPI.window I get these error messages until it crashes.

d4328df1879e45ad0ce9ddebf90bf480

Just thought I'd being it to your attention

Ryah avatar Jul 23 '16 19:07 Ryah

Don't think window is working as it should, set console as startup and edit from there.

Seems window is a new WIP project, from what I saw scouring through it, it has some faults.

TinyRickMF avatar Jul 23 '16 19:07 TinyRickMF

edit the config in window -> debug

DetectiveSquirrel avatar Jul 23 '16 19:07 DetectiveSquirrel

Working for me right now atm testing so not sure http://puu.sh/qbSPD/5dc0dccbf4.png

DetectiveSquirrel avatar Jul 23 '16 19:07 DetectiveSquirrel

Doesn't work with the lucky egg usage I added from 1.2.2.6. Console version can still run it, window crashes on use.

TinyRickMF avatar Jul 23 '16 19:07 TinyRickMF