Solve basic auth proxy issues with Nuget, Visual Studio and Xamarin (hack)

2016-08-23

When you're using Visual Studio behind a Basic Authenticaton proxy, you may run into issues restoring Nuget packages. While I've never found a real solution for the issue, and trust me I've tried quite a few workarounds like the ones listed here.

You'll get the following error:

[5:06] Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and put it to the C:\Users\user\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.3.0.0 directory.
[5:06]  Reason: The remote server returned an error: (407) Proxy Authentication Required.

I've come to rely on my trusted hacking friend Fiddler and turn on "Automatically Authenticate".


Optionally configure your upstream proxy in Fiddler:



Restart Visual Studio so it picks up Fiddler as the proxy and you're good to go. Just leave Fiddler running in the background and all will be well.

A quick peek into Team Foundation Server 15 Preview

2016-07-09

Gian Maria Ricci already covered a nice overview of what's new in the install experience of TFS 15 in the latest Preview Release. Let's walk through the new features in the product... though I suspect that many of you won't see a lot of surprising things, given that many of the features have been released to Visual Studio Team Services in the past months.

A quick scan through all the tabs and pages of Web Access reveals a cool number of new features, though maybe not yet as many as you had expected. Just remember that the time between releases has steadily gone down from 3 to 2 and now only 1 years. The differences are no longer earth shattering, but still very welcome!


Configuration

Build Agent

At the server level you'll see the that TFS15 will ship with a new Build Agent. The new build agent is built using .NET Core which makes it compatible with Windows, Mac and Linux. This will bring it on par with the Visual Studio Team Services agent again.


The new agent supports NTLM authentication for the other platforms as well, removing any need for configuring the TFS server with Basic Auth. (yay!)

Search

I'd expected to see an option to manage or configure search, but this is currently done from the TFS Management Console. At the moment there isn't much to manage after configuring it in the installer:

Enable the new work item experience

After installation you'll have the option to enable the new work item form for your existing Team project. 
Clicking the Enable option will prompt you your current Work item Forms will be layed out according to the new layout.
After updating all the work item forms you can go in to optimize the layout. You'll then be prompted to configure the opt-in options. The first step is to enable the opt-in option for project admins, who can then optimize the layout before they cascade the option to all their users.


Once projects have been updated with the new layout, you can switch to the "new form only" mode.

After enabling the new work item form the old (windows forms based) forms in Visual Studio and Excel will drop you into the Web part of Visual Studio to edit work items.

Alerts Admin

Another great new addition is the ability to see and manage alerts for other users. I can't tell you how often I've been asked to "turn off those bloody email messages" by users after they had (sometimes long ago) configured alerts and had no idea where all the email started coming from after another 8 users joined the project.

By entering the username of another user you get an overview of all the alerts configured for them and if you have the proper permissions you can even edit and delete them. Nice!

Build retention

It looks like that with the new Agent and a bit of time the issue that file share drops were never cleaned up have been resolved. You can now configure retention for files dropped to file shares as part of the "Copy and publish build artefacts" tasks in Build:

Agile tools

I'd already mentioned the new work item form, while some people love it, others still are having a difficult time to come to terms with it. I like it very much. Unfortunately the new Process management features where you can add/remove fields from the UI hasn't made it to TFS yet. Let's hope the team manages to port that in the months leading up to the final release.

Test and Tasks on the PBI

For teams doing Kanban and for Product owners who spend most of their time at the Backlog level (instead of the Sprint level) there is now an option to track the tasks and tests for each Product Backlog Item. So even if all the tasks are done, you can see that maybe not all tests are passing.

New Branch & Do Explore

You can now create a new Git branch when you or your team starts working on a new Product Backlog Item, promoting feature branches and making it easier to implement common process flows like GitFlow.

Another option enabled from the same context menu is the option to start exploratory testing right from the task board. which is a great feature for teams that do want to have end-to-end traceability of their tests to their Product backlog Items, but do not use the Test Case Management options of TFS, possibly because they to ATDD using a tool like SpecFlow to handle their test cases for formal tests. For informal tests they can now launch directly from the backlog.

Both options are also available from the backlogs and boards:

Build & Release

I've already mentioned the new Build agent and the new build retention. Another great addition is that of Subversion and External Git. I'm guessing (from the fact that the Service Connection dialog exists) that GitHub will be supported too, but for now it doesn't show up on my instance.

GitHub does already appear as a artifact source for Release management, though I can't get it to work at the moment:

Code Search

Another great new feature, which has been available as an extension for VS Team Services for a few months now is Code Search. While it does bring a few interesting twists to TFS at the admin level (it requires Java to be installed and kept up-to-date by the server administrator), it makes it much easier to find pieces of code anywhere in TFS.

I can't tell you how often I dig through GitHub trying to find examples or similar pieces of code from the pieces I'm working on when venturing into little documented area's of existing products, like the new Build Engine piece of TFS and Visual Studio Code.

This will now also come to on-premise TFS servers, allowing much easier code re-use and discovery throughout the enterprise:

Concluding

I'm really looking forward to the new version of Team Foundation Server. The new installer features to make it easier to do trial upgrades are very welcome, and I believe that with Code Search, new Build Agent and the fresh Work Item look & feel it provides a nice upgrade to existing users as well.

Connecting to TFS from any version of Visual Studio

2016-07-04

I've written a couple of blog posts on this subject before and thought it would  be nice to consolidate them into one big post now that Visual Studio 2013 is about to be released. There are 3 major things to consider when connecting to TFS from an older version of Visual Studio.
  • The version of TFS you want to connect to
  • The version of Visual Studio you're connecting from
  • The version of Windows you're running
In this blog post:
  1. Connecting to Team Foundation Server 2015 or Visual Studio Team Services.
  2. Connecting to Team Foundation Server 2013.
  3. Connecting to Team Foundation Server 2012.
  4. Connecting to Team Foundation Server 2010.
  5. Configuring the MSSCCI provider for Visual Studio
  6. Connecting from Visual Studio 2005, 2008 or the MSSCCI provider
Since writing this post, Microsoft has produced an updated piece of documentation (which is already behind in some aspects) that describes most of the client/server combinations. One thing it adds which I haven't described, is the list of features that are available depending on your version of Visual Studio/TFS.

If you're having issues connecting after updating, it might be required to clear your local client cache to clear up certain issues like this one. Either the official way or the hard way.

If you also want to install the Team Foundation Server Power tools to match your Visual Studio/TFS version, check out this separate post.

Update: Updated download links to the final version of Team Explorer 2013.
Update (13-11-2013): Updated download links to the final version of Visual Studio 2012 Update 4.
Update (25-11-2013): Added information on client cache and feature docs.
Update (6-1-2014): Added update for VS2010 for Windows 8 and Visual Studio 2012
Update (21-1-2014): Added update 1 for Visual Studio 2013
Update (25-8-2014): Added update 3 for Visual Studio 2013
Update (21-7-2015): Added update 5 for Visual Studio 2013 and Visual Studio and TFS 2015. Since Visual Studio 2013 Update 5 contains updates to handle TFS 2015 Team Project Renames, it's recommended for anyone connecting Visual Studio or MSSCCI 2013 to TFS 2015.
Update (22-7-2015): Added update 5RC for Visual studio 2012.Since Visual Studio 2012 Update 5RC contains updates to handle TFS 2015 Team Project Renames, it's recommended for anyone connecting Visual Studio or MSSCCI 2012 to TFS 2015.
Update (26-8-2015): Replaced Visual Studio 2012 Update 5 RC with the final version.
Update (30-8-2015): MSSCCI 2013 now also supports Visual Studio Team Foundation Server 2015. But it still depends on Team Explorer 2013.
Update (27-10-2015): IntelliJ IDE's support added
Update (8-1-2016): logging on using Azure Active Directory is no longer supported on Windows XP/2013 and systems with IE8 or older.
Update (4-7-2016):Added Visual Studio 2015 update 3


 

Search This Blog

Loading...

Most Reading