This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17368|Reply: 0

[Communication] Visual Studio 2017 configuration GitHub point tools update and extension errors

[Copy link]
Posted on 1/23/2019 9:37:44 AM | | |
1. Open Visual Studio 2017, click Tools->Extensions and Updates in the navigation bar, and install the plugin
Error on time:
Retrieving a component with CLSID {CLSID 177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} in a COM class factory failed due to the following error: 8007007e The specified module could not be found
Reason: VS 2017 installation package download failed, template could not be found, but update failed.


Solution: In the control panel of the Windows system, the program uninstall interface, click Modify to appear the Visual Studio 2017 installation interface, click Repair.

After fixing, click Tools->Extensions and Updates in the navigation bar and search for GitHub download in the Visual Studio marketplace interface search bar.

2. After installation, it will prompt to close VS and then take effect, close VS, start installation, the process is very simple, follow the prompts, and the next step can be taken.
Then launch VS, create our project, and get started
Note that select "Create new Git repository" in the lower right corner to create a local code repository
Then open Team Explorer
You will find that at this point, there is already an option for GitHub
If this is your first time logging in, you will be asked to log in to your GitHub account
Once logged in, click Create and we want to create a new code repository on GitHub
Note that the Name can be custom and can be different from the solution and project name, but the Local Path must be the root directory of the solution
Create a successful legend
Then, we write a piece of code, test the code changes, create a source.cpp file, and write a piece of code as follows
At this point, you will find that in the solution next to it, there will be a small plus sign in front of the source.cpp, indicating that there is a change in the file code
In GitHub management, if you want to sync to a remote codebase, you need to publish your own codebank first
In Team Explorer, click Publish
Correspondingly, on the GitHub official website, you can see your code changes just now
At this point, all the operations are completed, although there is no difficulty, but for me, a novice, it still took a long time, so let's record it.
Compared with VS2013, VS2017 is easier to operate and less prone to problems.

3. Configure GitHub for existing projects
There are some projects that I wrote before, but I didn't configure Git, and now I want to configure GitHub's remote code repository, how to do it?
For example, I now open a demo of a weather forecast I wrote before
After opening it with VS, in the solution (note that it is not a project, it is a solution), right-click and select Add Code Control.
Then you will find that the icon of the previous code file will have a bunch of small lock icons before it
Indicates that your files have been tracked by your local Git system, and that there is an additional .git folder in the root directory of the solution
Also, there will be an additional local code warehouse in Team Explorer
Click on the home page of Team Explorer and click Sync
Then just publish to GitHub
Write a description and it will be generated in the introduction of your GitHub repository
Created successfully
Then go to the github.com to see if your homepage is updated
Well, as expected, at this point, all operations are complete.

4 Summary
In fact, there is nothing difficult about Git operations, whether it is the Git bash command line or the Git plugin integrated with the IDE, and more and more development tools provide Git GUI methods (such as Git in AS CVC, and GitHub for Desktop, etc.), which are very easy to use. For a developer, managing their code is undoubtedly a good habit.






Previous:When writing c# timed lock screen software, the initial value of TextBox cannot be null, otherwise it will be abnormal
Next:The .NET Core project leverages Jexus to deploy under linux
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com