Click here to Skip to main content
11,417,750 members (46,569 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 4:41am
Hslldm393
Edited 23-Jan-13 4:42am
v2
Comments
joshrduncan2012 at 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 at 23-Jan-13 9:55am
   
How can i run the .cs projects?
joshrduncan2012 at 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
good
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.
  Permalink  
Comments
Hslldm at 23-Jan-13 9:53am
   
What should i do?
Richard MacCutchan at 23-Jan-13 10:09am
   
Look at the Project Settings for the project. Also use the help system.
Hslldm at 23-Jan-13 10:16am
   
Thanks

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

  Print Answers RSS
0 Sascha Lefévre 340
1 Abhinav S 339
2 OriginalGriff 315
3 Sergey Alexandrovich Kryukov 255
4 deepankarbhatnagar 121
0 Sergey Alexandrovich Kryukov 9,345
1 OriginalGriff 7,712
2 Maciej Los 3,758
3 Abhinav S 3,601
4 Sascha Lefévre 3,198


Advertise | Privacy | Mobile
Web02 | 2.8.150427.4 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2015
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