Archive

Archive for the ‘Visual Studio’ Category

Visual Studio 2017 Live Unit Tests


One of the best features in Visual Studio 2017 is Live Unit Tests. It allows you to see the lines of code that are covered by unit tests and the result of running those unit tests. Live unit tests also update the results of the unit tests and the lines on the code on the modification of the code without manually running the unit tests. By click on the red X icon on the left, you can see which unit test(s) are failing and you can quickly jump to it to fix it. The – icon indicates that the line is not covered by any unit tests. Live unit test supports MSTest, NUnit, and XUnit using C# and VB.NET.

 

For more info about Life Unit Tests, visit https://blogs.msdn.microsoft.com/visualstudio/2017/03/09/live-unit-testing-in-visual-studio-2017-enterprise/

About Lajak Technologies

A consulting firm in Ottawa, Ontario that provides services related to Microsoft technologies, Team Foundation Server, DevOps practices, security and more. Contact us today to help you solving your complex software problems.

Visual Studio 2017 Gets a New Start Page


 

One of the new features in Visual Studio 2017 is the new Start Page. As shown below, it looks spacious and everything is at your finger tip. Notice on the right-hand side, you can collapse the news feed if you are not interested in that. On the left-hand side, the recent solutions is grouped by This month Last month and Older. To the right of that, you can open a new project from VSTS, or from a local folder without using the menus. Finally, you can create a new project by using one of the recent project templates or search for a project template without using the dialog.

About Lajak Technologies

A consulting firm in Ottawa, Ontario that provides services related to Microsoft technologies, Team Foundation Server, DevOps practices, security and more. Contact us today to help you solving your complex software problems.

Load Testing: Context parameter ‘$HIDDEN1.__RequestVerificationToken’ not found in test context


I was doing load testing using Visual Studio 2013 Ultimate for one of the applications I was working on and I noticed the following error when I try to run the recorded load test

Context parameter ‘$HIDDEN1.__RequestVerificationToken’ not found in test context


Scanario

The test scenario was the following:

  • Load home page
  • Click a url on a page
  • Dialog shows up (GET)
  • Select a value from a dropdown on the dialog (POST)
  • Submit

Cause

The tool was trying to use $Hidden1.__RequestVerificationToken from the main page but that variable wasn’t available in the current context.

Resolution

Add a new Extraction Rule, create new variable at the GET request step above the POST request


Assigned the __RequestVerificationToken value in the form to a Context Parameter


In the Post request, change the form post parameter to new token



That specific request was a POST request done using Ajax.

Migrate your Visual Studio Online to On-Premises TFS


For a limited time, you can move your Visual Studio Online to on-premises TFS. This feature is turned OFF by default and you need to contact VSOExportSupport@Microsoft.com to turn it on. You also need to upgrade your on-premises TFS to Update 2.  

Microsoft has published step by step article on how to prepare you on-premises environment, export your projects, and import them

http://msdn.microsoft.com/en-us/library/7cb80f0d-0119-4277-82e8-719a8db1796e

 

 

Azure: Provisioning a Visual Studio 2013 Ultimate VM in minutes!!


As you may already know, some MSDN Subscriptions come with Windows Azure Credit that can be used for Dev and Test usage. As of October 24, 2013, you can get upto $150 to spend on your Windows Azure account. For more detail visit

http://www.windowsazure.com/en-us/pricing/member-offers/msdn-benefits-details/

How?

In this post we will provision a new VM on Windows Azure with Visual Studio 2013 Ultimate. All steps and screen shots were done and taken on October 24, 2013.

Activate Your MSDN Windows Azure

Login to MSDN

Click on MSDN Subscriptions

image

Click on the Access benefits button

image

 

Click the Activate Windows Azure link

image

Windows Azure Portal

The previous steps should activate your Windows Azure account and take you the Windows Azure Portal. If you have already activated it before, you can go directly to www.WindowsAzure.com and sign in with your account

image

Select your subscription

image

Click on the Portal button

image

Click Virtual Machines link on the left and then click new on the bottom

image

From the Menu, click on the From Gallery menu item

image

I am selecting Visual Studio 2013 Ultimate on WS 2012 but feel free to select another VM image and click on the arrow at bottom right corner

image

Give the VM a name

Select the VM Size

Create a username and password (we will use that username to login using remote desktop)

Click next

image

Select a Cloud Service if you have one or choose Create a new cloud service

Give it a name

Select a location

Click next

image

 

I am leaving all fields as default value

Click the check mark at the bottom right

image

The VM now is being created, it took around 5 minutes to complete the provisioning of the VM

image

When provisioning is completed, you will get notified at the bottom of the screen

Click on the connect button

Double click the downloaded rdp file or open it from your browser

image

Enter your username and password and you

SQL Server Data Tools – September 2013 update


Microsoft has released the September 2013 update for SQL Server Data Tools (SSDT). It contains a fix for the schema compare when working with large display text or high DPI.

http://blogs.msdn.com/b/ssdt/archive/2013/09/18/updated-sql-server-data-tools-for-september-2013.aspx

Visual Studio 2013 Release Date


Microsoft has announced that Release Date for Visual Studio 2013 is November 13, 2013. October 18, 2013

Along with the RC release today, we announced the VS 2013 RTM (Oct 18th) and launch dates (Nov 13th).

http://blogs.msdn.com/b/bharry/archive/2013/09/09/visual-studio-2013-amp-tfs-2013-rc-is-available.aspx

The launch date is still Nov 13, 2013. You can join the Virtual Launch event at http://events.visualstudio.com

In the meanwhile, you can still download RC version of Visual Studio/TFS 2013

http://www.microsoft.com/visualstudio/eng/2013-downloads