Click here to Skip to main content
12,998,028 members (55,610 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Actually i asked the question before but i guess i didn't make myself clear.

I am kind of new at Visual Studio. And i downloaded the source codes from there

And i opened Form1.cs and Program.cs, but i was not able to Debug it. When i copy the codes and paste it to a new project, debug option becomes available.

My question is how do i run a program in Visual Studio when i download the source codes from here? What is the problem here?

Thank you
Posted 23-Jan-13 3:41am
Updated 23-Jan-13 3:42am
joshrduncan2012 23-Jan-13 9:51am
You can only debug .csproj or .sln files. Single .cs files are not allowed to be debugged unless they are a part of an existing project.
Hslldm 23-Jan-13 9:55am
How can i run the .cs projects?
joshrduncan2012 23-Jan-13 9:57am
If you have a .csproj file or a .sln file, if you double click on that, that should allow you to debug/run that project. Otherwise, if you have a loose .cs file, you will have to import it into a new project that you create yourself, depending on what type of project the .cs file represents (windows forms, console, web app, etc).

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is no problem. You just need to ensure that you create a project with Debug set. If the project is downloaded from the internet that may mean changing some settings before you build it.
Hslldm 23-Jan-13 9:53am
What should i do?
Richard MacCutchan 23-Jan-13 10:09am
Look at the Project Settings for the project. Also use the help system.
Hslldm 23-Jan-13 10:16am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100