Click here to Skip to main content
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 3:41am
Hslldm393
Edited 23-Jan-13 3: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 mhegazy94 460
1 Sergey Alexandrovich Kryukov 405
2 Kornfeld Eliyahu Peter 275
3 Gihan Liyanage 163
4 Sibeesh KV 156
0 Sergey Alexandrovich Kryukov 6,775
1 OriginalGriff 6,696
2 CPallini 5,345
3 George Jonsson 3,599
4 Gihan Liyanage 2,751


Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
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