Suppose that i have a web application solution on GitHub.
How do i fetch or import the whole web application solution from github to visual studio 2013?
I am expecting something like this:
File -> Open -> Open from source -> enter githublink and credentials -> auto create project and fetch from github
but seems like i cannot found the solution
P/S: I am not looking forward on solution that download the entire zip file from github, open in visual studio and recommit it into github.
Open the Team Explorer tab, at the bottom of the Connect page (power plug icon) you'll see a list of Git Repositories, enter the https uri to your github project and hit clone.
See also: https://stackoverflow.com/a/19893242/736079
Related
I have just upgraded from Visual Studio 2019 to Visual Studio 2022 and I have encountered a strange problem. When going to File -> Account Settings..., under "All Accounts" I used to have both my Microsoft account (which is also my Personalization Account) and my GitHub account. In VS 2019, there was no issue adding the GitHub account, but I have not been successful in VS 2022. When I select +Add▾ then GitHub/GitHub Account, the Connect to GitHub dialog pops up asing me to Sign In to either GitHub or GitHub Enterprise. Since my account is GitHub and not GitHub Enterprise, the only sign in option listed is "Sign in with your browser".
When I select Sign in with your browser, I get redirected to https://visualstudio.microsoft.com/vs/github-signed-in/ and I get the message "Success! Your authorization was successful. You can now return to Visual Studio."
The expected result at that point would be to see my GitHub account listed under All Accounts, but I do not. The other expected result would be to see Visual Studio listed in my GitHub account under Authorized OAuth Apps, and I do see it there, so it does look like the authorization was successful. As well, I can access repositories without issue, so it looks like the problem is inside Visual Studio 2022.
Has anyone else experienced this issue? Is this a known issue that Microsoft is working on?
EDIT: I found this on the Microsoft Docs, which lays out the steps I was following. Under Adding public GitHub Accounts, I get to Step 3 ok, but then at Step 4, I do not get the expected result.
I've also found out this is preventing me from creating a new repository from VS, or opening a repository directly from VS. I can still work with local repositories cloned via GitHub Desktop, but that's about it.
Very annoying.
This worked for me:
Open ‘Account options’(Click ‘Account options’ in account settings page or navigate to tools > Options > Environment > Accounts) and check ‘Include GitHub Enterprise Server accounts’ checkbox, then click on “Re-enter your credentials” again and check if you still unable to sign in to GitHub enterprise account?
https://developercommunity.visualstudio.com/t/unable-to-sign-in-to-github-enterprise-account-in/1460790#T-N1465373
I had a suspicion that this was related to some type of settings cache or potentially some type of previous Git setting. After wiping out all of my Visual Studio settings and re-setting to factory defaults (which is another annoyance) using the following commands, it started working for me:
devenv.exe /ResetSettings
devenv.exe /ResetUserData
When I clicked Manage Connections, the GitHub option wasn't available in the usual spot. Only the Microsoft Sign on. I found another spot to connect to GitHub;
Open the Team Explorer (View -> Team Explorer).
Click the Connect | Offline drop down from the top of the explorer.
Projects -> New Repository
Under Create a new GitHub repository select Add an account under the account field to open up the sign on page for GitHub.
I watched a video on Microsoft visual studio youtube channel on how to work with git and github. When the user opened their visual studio program. I see the normal solution and team explorer. They also have a github tab. I wanted to know of there was a package that needed to be added. I downloaded just about every package that has to do with github extensions but with no luck. Any help would be appreciated. Here the link to the video https://www.youtube.com/watch?v=9ITVx4VvkcI timestamp 5:27 for better clarification. Here is a screenshot of the github feature I do not have higlighted.
5:04 in video, the screen of VS2019 installer, see on the right, it's an individual component to install:
Github Extension for Visual Studio
If that fails install it from here: https://marketplace.visualstudio.com/items?itemName=GitHub.GitHubExtensionforVisualStudio
Then click View menu > Other Windows > GitHub:
I'm building a website where students can complete exercises. When a students starts an exercise I add a solution to the students TFS repository. I want to open this solution in Visual Studio from the browser. If it works students will only need to click once to start an exercise.
It is possible to open Visual Studio from the TFS dashboard:
href="vsweb://vs/?Product=Visual_Studio&EncFormat=UTF8&tfslink=<base64encodedstring>"
The decoded base64encodedstring looks like this:
vstfs:///Framework/TeamProject/<GUID>?url=<url to teamproject>
Googling the vstfs protocol doesn't give me much extra info. The best resource I found was:
https://msdn.microsoft.com/en-us/library/bb130164.aspx?f=255&MSPPError=-2147217396
This page only explains some general concepts:
vstfs:///<tooltype>/<artifacttype>/<tool-specific id>
The different possibilities for tooltype are not explained.
What would be the correct vstfs command to not only open Visual Studio but open a solution as well?
I'm using TFS 2015 (on prem) and Visual Studio 2015.
To start Visual Studio and open a .sln file from a TFS 2015 web page, this could be achieved by following the steps below:
If you are using TFVC version control type, please let your students map down the solution in Visual Studio first. If you use Git version control, please let your student to clone the git repository to their machine first.
In TFS web page, find the .sln file and click it. Then click the VS button show in the picture below.
I have a project on vs 2010. I have tried to add project on windows server 2003 which has tfs 2010 installed. Later on I have switched to windows server 2008 and then installed tfs 2010 again. But I have changed server name.
Now, when I try to add project to tfs, I receive and error says that;
Team Foundation services are not available from server http://old server name:8080/tfs/. Technical information (for administrator): The remote name could not be resolved: 'old server name'
I have tried to add different projects but I havent received any errors. I am thinking problem is like, visual studio installed on my client computer has registered project with old server name and still tries the same server but team explorer can not find the server.
what shall I do?
PS: I am not tring to get my codes on old server. I did not use tfs, just wanted to learn it.
If you get the message when you open Visual Studio then you need to go to Team Explorer and click the "Connect to Team Project" button, then click on the "servers" button and remove the old server. If you need to you can also add the new server here.
If it's when you're opening the solution then you need to remove the Source Control bindings
open the solution and then go to "File", "Source Control", "Change Source Control" this will open up a screen where you can Unbind the Projects and Solutions from the old server.
Pls refer
Finding the .Net framework
Based on the inputs I was able to open the website using
Click on File -> Open -> WebSite (Or press Alt+Shift+O).
Select the folder which containing your file (aspx, aspx.vb, web.config)
It was all working fine till today morning.
Today morning, I presume there was some Silverlight installation or Windows update going on when I clicked to open the website and Visual Studio env went into hang state.
After that I have not been able to open the website from recent project list. I also tried renaming the directory and follow the approach i.e. Click on File -> Open -> WebSite (Or press Alt+Shift+O). but no success. The screen just blinks and cursor remains on the page showing latest news on Visual Studio
However my other websites are opening fine in Visual Studio env. If it helps I am using Visual Studio 2005
Request you to pls help.
Thanks
I cannot open the website directly from the folder as I do not have complete website and that is precisely why I am following the approach of
Click on File -> Open -> WebSite (Or press Alt+Shift+O). Select the folder which containing your file (aspx, aspx.vb, web.config)
as suggested by someone earlier.
Try restarting your computer.
Try opening the WebSite directly from the folder, not in VS.
It doesn't make sense to try to open part of a web site.
Also, is there a chance that the original site was a web application project? It would have a .csproj or .vbproj file in it.
I could solve my problem by resetting the export/import settings.
Romée