GithubHelp home page GithubHelp logo

csharp-workbook's Introduction

C# Workbook

Download Workbook files

  1. Fork this workbook to your account by clicking the "Fork" button
  2. On your forked repository, click the "Clone or download" button and copy the url
  3. On your computer create a folder that will contain your repository
  4. Open Git Bash and navigate to the folder created above
  5. Use git clone command to download the repository into your computer, replace "url" with the url from step 2.
git clone "url"
  1. Navigate into the directory and leave the Git Bash open, we will use it later
cd git-workbook

Visual Studio Project

  1. Open Visual Studio Community
  2. On the top menu select File -> New -> Project or use the keyboard shortcut Control + Shift + N
  3. From the left menu select Visual C# -> Windows Classic Desktop then on the right select Console App (.NET Framework). Set the project name as CSharpProject, the location can be anywhere in your computer, just make sure it is outside your recent cloned repository folder
  4. Visual Studio will create a initial Program.cs file. You can delete it, we wont need it
  5. To add a file to the project, right-click on top of CSharpProject Add -> Existing Item... or use the keyboard shortcut Shift + Alt + A
  6. Navigate to the /git-workbook/01Week/ repository/folder and select the file HelloWorld.cs
  7. The Add button has a small arrow pointing down. Click on that and select Add As Link. If you just add it, it will copy the file and you won't be able to track it in your repository.
  8. Open the file you just added as a link
  9. Change th text inside Console.WriteLine method to "Hello Word" and save it

Create a Pull Request

  1. Get back on Git Bash and check the status of your repository - You should see the file HelloWorld.cs appear in red
git status
  1. Stage the file using:
git add -A
  1. Commit that staged file
git commit -m "Hello World"
  1. Push your changes up to your remote repository
git push
  1. Head to your remote repository in GitHub
  2. Click on new pull request button and name it using your name

If you are having some trouble with the steps watch this video here

csharp-workbook's People

Contributors

navarrorc avatar kevincolten avatar clofton avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.