0 Comments

This post is part of an overall Series on Visual Studio Online.

Long Way

After you have a new Team Project in VSO you would eventually want to connect your Visual Studio to it. Open Visual Studio

image image

Open Team Explorer by click View and then Team Explorer

image

When Team Explorer pops up click on the Connect to Team Projects button

image

and then click on Select Team Projects

image

Click on Servers

image

Visual Studio conveniently loads a list of your servers connected to VSO for you if you signed in, if you don't see your newly created account in the list click Add

image

Enter the full url to your account as it was on your account page and click OK

image

You account will now exists in the servers list, click Close and then the Connect to Team Foundation Server window will auto load your Team Project Collection and it's Team Projects, tick the checkbox next to the Team Projects you want to be able to connect from in Visual Studio and click Connect

image

Your Team Project is now connected to Visual Studio and you can now setup your builds, clone code repositories, etc

image 

Slightly more steps than before.

Short Way

Of course if you wanted to open the project the easy way you could simple navigate to the Team Project and click on Open in Visual Studio 

image

this would then launch a new instance of Visual Studio and connects to your Team Project

image

1 Comments

My internet connection is slow or down quite a lot. One of the things Robert MacLean pointed out today in a presentation at a Microsoft Dev Day event today is that is that you can make use of the local cache from previous downloaded packages. Below is how to do this Smile

You can simple hit ctrl + Q type NuGet and then choose Package Manager Settings.

image

When the window opens click Browse.

2014-09-25_11-53-06

This will open a Windows Explorer window with a path like below

2014-09-25_11-55-38

Copy that path into your clipboard and go back to the Package Manager Settings window. Click on the Package Sources tab and then click on the new button

2014-09-25_11-57-35

Give this new package source a name and paste the path into the Source textbox

2014-09-25_11-59-22

Click OK and you sorted. Your pc will now use your local cache for packages as well Smile

1 Comments

For the last while I have been experiencing weird hangs with Visual Studio 2013. To try identify what was causing the hangs or at least where about the problem was I ran ProcMon.exe on devenv.exe and the point where Visual Studio hung I was getting the below output recursively

clip_image001

This was kind of weird because I'd never seen this before, I logged a Microsoft connect case through Visual Studio's Report a Bug Feature after installing the Microsoft Visual Studio 2013 Feedback Tool which allows a more detailed collection of data for your bug.

image

After creating this bug I attached a ETL trace using PerfView, if you don't know how to use PerfView you can follow the tutorials on Channel 9 (PerfView Tutorial).

The ETL Trace showed a large amount of time spent on the Certificates which matched what I found with ProcMon.exe

image

At this point it was pointed out that I should look at how many certs were in my SystemCertificates (C:\Users\<username>\AppData\Roaming\Microsoft\SystemCertificates\My\Certificates), I found that I had 2405 certs which was a lot more than usual

clip_image002

At this point we still didn't know what was causing so many certs to be generated. I decided to delete all the certs and see what happens. After a reboot everything was working 100% again Smile

Later I was playing with Fiddler and saw a weird error talking about certificates, I went to the certs folder and saw that there was more there. I deleted them again, went to a https site and saw certs been generated Smile, the reason for so many certs is because I had Decrypt HTTPS traffic option checked

clip_image002[5]

Changed this to not have it checked (because I didn't need it) and now I have a low amount of certs in my System Certificates folder again Smile.

Hope this helps someone else with this random issue Open-mouthed smile

1 Comments

Visual Studio 2013 Update 1 has been released and as usual you are able to use the /layout argument to download all the files so you can share them locally instead of everyone downloading them. As mentioned in Brian Harry's blog here there is no update for TFS this time round but good things are coming for TFS Update 2.

If you don't know how keep reading Smile.

Download the update file from http://www.microsoft.com/en-us/download/details.aspx?id=41650. Hold down Shift and Right Click in the folder where you downloaded the file to and click on Open command window here.

image

In the command window type VS2013.1.exe /layout and press enter

image

Setup will run and you will see a different screen from normal

image

Select the location you want to save the files to and click DOWNLOAD. The files will all now be downloaded for offline use.

image

When the download is complete you can run the VS2013.1.exe executable in the download location

image

The setup will continue as normal but instead of downloading the files the files in the packages location will be used instead. Check the I Agree checkbox and then Install

image

As mentioned the packages are now downloaded so after the creating a system restore point you will see the Acquiring bar will go to 100% straight away and the setup will continue installing the components

image

When done you might be asked to restart your PC, click Restart Now

image

Enjoy Update 1 for Visual Studio 2013 Smile

0 Comments

In these posts we will be going through creating different elements that can be found in the Team Explorer, the aim is to give you the ground knowledge required to extend Team Explorer your way. For an example of some great Team Explorer plugins that demonstrate how much you can do take a look at Team Rooms for Visual Studio 2013 and News which were created by Utkarsh Shigihalli and Tarun Arora for Team Explorer in Visual Studio 2013.

All sample code that is worked on through out any of the Team Explorer Samples will be hosted on GitHub at https://github.com/Gordon-Beeming/TeamExplorerSamplePlugin.

What you'll need

Create the a new blank Visual Studio Package

Open Up Visual Studio in Administrator mode and create a new Visual Studio Package

image

Use the following options in the Visual Studio Package Wizard

Page 1 of 7 - Select your language as Visual C# and Generate a new key file to sign the assembly

image

Page 2 of 7 - Enter the Basic VSPackage Information

image

Page 3 of 7 - leave all unchecked

image

Page 7 of 7 - You should select Integration Test Project and Unit Test Project but for now deselect these Smile

image

Click Finish, Visual Studio will now crate the base Project for you and automatically open the source.extension.vsixmanifest file. With this file open there is one thing that we are going to want to add. We are going to require the MEF Component Asset. Thanks must go to Utkarsh Shigihalli for helping with this part Smile. Switch to the Assets tab and click New, select the options to complete the window as below

image

The last step to setup this solution for our sample plugin is to add a reference to Microsoft.TeamFoundation.Controls assembly which can be found by default in the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.5\and System.ComponentModel.Composition.

image

Your solution is now ready to start adding Team Explorer Extensions.

Take a look at Getting start with a Team Explorer Plugin for VS 2013 Part 2 where we will be adding a new Team Explorer Navigation Item.