Forum search & shortcuts

Total noob with Vis...
 

[Closed] Total noob with Visual Studio

Posts: 91171
Free Member
Topic starter
 
[#7584976]

Sorry guys - have not got time to train myself in VS, so I thought I'd ask here in case anyone's feeling charitable.

I've installed it, got a .cs file from someone which contains a Main method. However the run icon only contains an 'attach to process' option and the debug option is greyed out. I want to step through it to see what it does and where it's failing.


 
Posted : 17/01/2016 10:12 pm
Posts: 11402
Free Member
 

I would help but I only use VS for grown up languages.


 
Posted : 17/01/2016 10:18 pm
Posts: 0
Free Member
 

I think you might have to tell it which file you want to run.

[url= https://msdn.microsoft.com/en-us/library/a1awth7y.aspx ]Try this[/url]


 
Posted : 17/01/2016 10:22 pm
Posts: 1
Free Member
 

Trying creating a c# console app. It should scaffold a file with a 'main' method. Replace that file with the one you have, build it and try running it, adding breakpoints where you want.


 
Posted : 17/01/2016 10:23 pm
Posts: 5864
Full Member
 

Ironically. Technicallyinept is bang on.


 
Posted : 17/01/2016 10:48 pm
Posts: 91171
Free Member
Topic starter
 

Ah yes apparently I can't run the cs file in isolation, it needs a project. I have the author of the code sending me his. Thanks!


 
Posted : 18/01/2016 10:52 am
Posts: 0
Free Member
 

project files must be a completely alien concept to someone who programs in Java...


 
Posted : 18/01/2016 12:09 pm
Posts: 0
Free Member
 

molgrips - do you wear glasses ?


 
Posted : 18/01/2016 12:10 pm
Posts: 91171
Free Member
Topic starter
 

Why?

PS I've worked with loads of things besides Java over the years 🙂


 
Posted : 18/01/2016 12:29 pm
Posts: 0
Free Member
 

molgrips - do you wear glasses ?
Why?

because you can't c# ...


 
Posted : 18/01/2016 5:19 pm
Posts: 0
Free Member
 

molgrips - do you wear glasses ?
Why?
because you can't c# ...

that might have been a little cruel but, damn, it was funny...


 
Posted : 18/01/2016 5:22 pm
Posts: 31206
Full Member
 

Ah programmer jokes. 😆


 
Posted : 18/01/2016 5:36 pm
Posts: 13594
Free Member
 

“Knock, knock.”

“Who’s there?”

very long pause….

“Java.”

😮


 
Posted : 18/01/2016 5:44 pm
Posts: 91171
Free Member
Topic starter
 

because you can't c# ...

Oh for fu..... Argh


 
Posted : 18/01/2016 5:47 pm