Wednesday, December 12, 2018

Publishing your Visual Studio Projects to GitHub

I want to take a quick intermission to publish our project on GitHub since we put so much work into it.  Even if you decide not to publish your project to a public repository, it is important to add your project to some kind of source control.  Remember to commit your changes frequently with clear descriptions in the event you need to quickly roll back any changes that may break your application.  For this post, we will install and use the Visual Studio GitHub plugin to publish to a public repository.

Download the GitHub Extension for Visual Studio here: https://visualstudio.github.com/index.html

image

While this installs, you can create a GitHub account at https://github.com/

Open Visual Studio 2017 to the Invoicing solution.  Right click on the Invoicing solution and select Add Solution to Source Control…

image

Next click the Team menu option and select Manage Connections…

image

From the Team Explorer pane that pops up, click Sign in under the GitHub connections.

image

Sign in to your GitHub account.

image

Next, click the drop down where it says "Connect | Invoicing" and select the Sync option.

image

The Team Explorer pane should show GitHub as an option.  Select Publish to GitHub.

image

Next, fill in the details of the GitHub account you created and name the app.  I named this one InvoicingApp.  Then click Publish.

image

Now your code is published on GitHub.  Since we setup the mobile app portion inside this project folder, that project will automatically be pushed and synchronized to GitHub as well.

image

You can now see the published app in your GitHub account.

image

You can also clone this repository to obtain the code I have just published including future posts.  I will commit changes after each post.

InvoicingApp Repo: https://github.com/MECCSoftLLC/InvoicingApp

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.