Dissecting the First C# Program You Created - 03
- Posted: Nov 21, 2011 at 9:10 AM
- 95,353 Views
- 44 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
This lesson picks up from the previous one by discussing at length each completed action and written line of code. It discusses the relationship between the C# code, the C# compiler, the .NET Framework, and more. The lesson discusses the concept of code blocks at a high level explaining how methods, classes, and namespaces are related. Finally, the lesson shows you where your project files are stored and the location of code compiled by the Visual Studio IDE as well as the different types of compilation (i.e., debug compilation versus release compilation).
Already have a Channel 9 account? Please sign in
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Where is the awesome intro music tunes??? J/k
Easy to understand video. Thanks.
"It gives you enough rope to shoot yourself in the foot" :)
Fantastic series. I truly appreciate your clarity and enthusiasm.
Sir from where can I find complete series of
"Day 01, Video 02 Core C# - Building your First Application in C#"
http://www.youtube.com/watch?v=CgneSbtDyPc&feature=BFa&list=ULw7GfjQlHh08&lf=mfu_in_order
these tutorials for free?? Complete 22 hours??
Str kindlt help!!
I don't have a "release" folder with that "debug" folder.
even after building solution.
Please reply soon
Thanks!
@Naqi Agha: Hi!
re: 22 hour C# series ... The series you are referencing is not free. I have posted a few on YouTube for promotional purposes. Please see my website for more information.
re: release folder ... what I post below is from the VB version of this video, so I'm copying the comments from that video that address the same question:
http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners/Dissecting-the-First-Visual-Basic-Program-You-Created-03
The release folder is used when a release version of the application is created. To create a release version IN VB EXPRESS EDITION, you must choose the menu option Debug | Build <<your project name>>. Likewise, the Debug version of the application will not appear in the Debug folder until you run (Start Debugging / F5) at least once.
IN VISUAL STUDIO 2010 PRO: You first choose the pre-created Release configuration from the Configuration Manager (Build | Configuration Manager ... or the Solutions Configuration drop down box on the toolbar ... next to the green Start Debugging arrow icon) then select Build | Build <<your project name>>.
I just did this in the PRO version and got this output in the Output window:
------ Build started: Project: HelloWorld, Configuration: Release x86 ------
HelloWorld -> C:\Users\Robert Tabor\documents\visual studio 2010\Projects\HelloWorld\HelloWorld\bin\Release\HelloWorld.exe
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
This points you to the folder where it was released (see the message, above). Hope that helps? Perhaps it was outputting in a different directory than you were anticipating?
Thanks Sir! that issue is resolved :) now i have the release folder !!
but now a new but related issue has just arouse :|
Sir the DEBUG folder in your video contains files:
1)HelloWorld
2)HelloWorld.pdb
3)HelloWorld.vshost
4)HelloWorld.vshost.exe.manifest
But my DEBUG folder don't contains "HelloWorld.vshost.exe.manifest" file.
But all these four file which I have mentioned above are present in my RELEASE folder. Where as the RELEASE folder in the VIDEO only contains files:
1)HelloWorld
2)HelloWorld.pdb
Sir, I am asking this issue because, as u have mentioned that the release folder should only contain the files which we have to give to others. But in my case it contains it all. What should I do??
@Naqi Agha: It might generate those other files, however it doesn't need them. To prove it, just delete those extra files, THEN double-click the .exe file ... it should still work!
Dear Mr Tabor,
Is there an easy way to download these videos?
It takes lot of time to buffer + I cnt download em easily like youtube videos
Plz help me.I realy wanna go through these videos
Thanx
@Savi: Hi, look at the video player at the very top of this page ... to the right of it, there's a way to download in 4 or 5 different video formats. Hope that helps!
I'm having issues hearing the audio on these videos - am I doing something wrong? I've tried IE and Firefox and have tried Auto / Progressive and HTML5 format.
Soundcard IS working (I can hear mp3/wav fine) ... just struggling to get sound on these silverlight assets...
@Steve Butler: Hi Steve, unfortunately I'm not sure I can help but I can recommend two things: (1) use the Feedback link in the footer to let the Channel9 team know the issues you're having. They take this stuff seriously. (2) try downloading the videos (see links next to the streaming area) ... you're more likely to have success when running them locally. Hope that helps!
@Ola: Thank you Ola, awesome comments.
Thanks mr Bob for these videos also I'd to ask you because i'm interesting for Windows phone develpment can I develop with windows phone without to have a good idea for c#
Great videos. I've been trying to get into programming for about half a year now and always been turned off by the amount i need to learn but the clarity, depth and encouragement in your videos is amazing. I'm really starting to enjoy programming now, thank you.
@MahmoudTunisie: Sorry I missed your question from almost two weeks ago!!! You will need to know some C# to create even the most basic applications for the Phone. You could drag and drop controls on to the designer surface and create a user interface without knowing C#, however to do anything meaningful you will need to get your hands dirty and write some C# ... c'mon. It's not that bad -- and frankly writing the code is the FUN PART!!!
@Carter: Thanks Carter ... I strive for clarity and encouragement ... I think that is important when teaching others. Glad these are helping you!
Bob, thank you so much for these videos. I have a background in programming (system programmer for IBM on MVS in the 80's - assembler) and would get a headache when OOP was mentioned. You have made this very easy for me. Funny thing - even when I am not on the classes I am thinking about all the cool things I can do with this.. You have done a terrific job - and no JCL (Job Control Language) to worry about :) Again - thank you. Now maybe I can get a job ....
@BobTabor: Crystal Clear Explanations Bob, thank you so much for that, it's really encouraging to watch your videos more
Great job !
Good job in explaning the whys and the hows. 10Q
Thanks for these super videos ...
i am trying to build simple applications with Express edition ... thank you...keep it up ...
@Terri: @thens
RDhaliwal
antisocial
Jag mohan: Thank you all, great encouraging words. 
very good job....bob, you make programming fun. God bless u.
Hi Bob, Really nice videos.. It really helps....Now I am gonna get my hands dirty with C# . Really appreciate your enthusiasm and clarity in these videos. Thank you very much!!!!
@chuckbgh: Great! Glad that you're having fun with this!
@Viju: You're welcome, and thank you for the kind words. Here's hoping you get your hands dirty and build something cool!
Bob, super videos!! I've taken several instructor led C# classes and still had not learned what I've learned in just the first few of your tutorials! you make everything seem clear and concentrate on the WHY and behind the scenes pieces that have been missing for me. AWESOME job! Thanks!
@Katie R: Wow, thanks for the compliment!
Great C# training videos indeed, so far! Thank you!
I would like to thank you for your detailed and (to me) concise teaching.
My level of expertise is... well, I programed in AppleSoft BASIC back in the 80's, and was pretty good at it. So I have the flow and logic of programming down.
I have designed and created reports, querrys, and forms in Access, so some of the IDE tools feel familiar.
Your videos have filled in some blanks that other video and written tutorials have left me wondering about - like, I was hung up on what a Class was. Your simple explanation got me past the fear that I am not paying enough attention to a class and using it in my code. As my skills increase and my "Solutions" get bigger, I know I will need to use classes. ...and it's thanks to you that I know that now.
@NikYaz: Thanks!
@David C: Very cool ... my early definition of classes will not suffice LONG TERM, but in the short term it should be a good working definition. You'll come to think of them in more conceptual / abstract terms as you learn more about Object Oriented Programming. Good luck and thanks for the kind words!
I've already searched for and read some other material about C# and Visual Studio, but your video series seems to be much more clear and practical! Like someone above said, your passion for what you do gets through to the audience. I think now I can finally dive myself into programming.
Also it's great to see you still take the time to answer our comments and doubts.
Keep up the good work, and Thank You!
I have not seen video lectures like yours anywhere. Thanks
Hi, great tutorials, very clear. +1 for clarity & making it interesting too
Its been awhile since I have bitten into C#, in highschool to be exact, so this is a nice refresher and reminder of all the key concepts that I need to know to code in C# Thanks!
I think you should graphically reference how FRAMEWORK,USING, NAMESPACE,CLASS,METHOD.. works so new user can understand...PICTURE IS 1000 WORDS.
Thank you for taking the time to produce this high quality video. It's just what I need to get started. I'm starting to work with an app that uses c# in VS...most stuff is already written, so just need to understand it. Thank you, thank you, thank you. I assume there is a 'for purchase' video(s) I can do after the immersion?
@cnewbie: Yeah, I have a 22 hour series + a lot more on my own website:
http://www.learnvisualstudio.net
allah razı olsun...
Hello Bob, your are did very good job....really appreciate your videos and it will really helpful.once again Thanks a lot....!!!!
Hello.Bob.
Great video series - thank you. One quick question (pardon my absolute newbie-ness) I understand that 'WriteLine' writes the text with a line break. What I don't understand, and what wasn't addressed in this video, is the second line of code, 'ReadLine'. Why is that there? Is it some standard format thing (a WriteLine is always followed by a ReadLine), or is there something else going on? Please explain. Thanks!
Curious, I definitely could be wrong here as I'm a total beginner....but I believe the Console.ReadLine(); is put in to keep the console window open to see the WriteLine("string");. If the ReadLine wasn't there, the console window would just print the string and close so fast you wouldn't see it. The ReadLine keeps the console open to wait for the user to type something to close the program out.
@Curious:TechAZ has the correct answer.
Just a tip from one noob to another: When learning to program you are going to come across many commands in syntax that you don't understand. It would behoove you to learn to answer your own questions.
For example, in this case you wanted to know what the ReadLine(); was for. Here are some ways I would go about answering that question for myself:
Pause before exit
You can insert a Console.ReadLine method call at the end of the Main method—or even in a finally block in the Main method. This will ensure the terminal window is never dismissed by Windows immediately on program completion.
I hope this helps. I'm not saying you were wrong in asking here, but you can get answers to questions pretty quick if you are willing to put some work in to it.
Remove this comment
Remove this thread
close