Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

About F5 "Debugging" for this solution #256

Closed Chener closed 11 years ago

Chener commented 11 years ago

Hi, I am recently digging into the code, and I need to active "debug" function in Visual Studio. As there are no executable projects within this solution, so I get this prompt: “A project with an Output type of Class Library cannot be started directly” I googled a bit and found there are three possible ways to solve this:

  1. Create a console application and reference the class library. Then 'use' its contents
  2. Debug an unit-test project
  3. Start existing client projec

So Which way should I choose? Can the SteamBot.exe generated be any useful here?

waylaidwanderer commented 11 years ago

Set ExampleBot as the Startup Project. Right click it, set as startup project.

Chener commented 11 years ago

@waylaidwanderer THX a million! Btw, why in this solution, why protobuf-net was set as the Startup Project? and does this have anything to do with the build order?

waylaidwanderer commented 11 years ago

Probably just a mistake by whoever last made a change to SteamBot

hohisonfire notifications@github.com wrote:

@waylaidwanderer THX a million! Btw, why in this solution, protobuf-net was set as the Startup Project? and does this have anything to do with the build order?


Reply to this email directly or view it on GitHub: https://github.com/Jessecar96/SteamBot/issues/256#issuecomment-16745822

Chener commented 11 years ago

@waylaidwanderer Aha, thank you anyway, and this issue can be closed ;)

cwhelchel commented 11 years ago

why protobuf-net was set as the Startup Project? and does this have anything to do with the build order?

I think this may be a per-user setting and Visual Studio will pick one if you don't have it setup.

Chener commented 11 years ago

@cwhelchel ye that makes more sense, ty ;)