Category Archives

50 Articles

Visual Studio Tips

Visual Studio Shortcut of the day: build current project (Alt + B), u

Posted by matteskolin on

Sometimes when working on a solution with many projects it is helpful to build a single project. For example when working on a large web application, where you are making small changes to an assembly, compiling the change and looking at the output in a browser, it saves time to only build the project that you are changing.

This shortcut requires no custom keybindings, and works by opening the “Build” menu. The name of the current action project (MyKitchen below) will build just the current project, and not the entire solution. My Visual Studio 2019 pictured below also appears to use Shift + F6 to do the same thing.



Visual Studio 2017 and other versions
Alt + B, u

Visual Studio 2019
Shift + F6
Alb + B, u

Visual Studio Tips

Tracking Page Views With Application insights

Posted by matteskolin on

See the first post on setting up application insights here.

After initially installing the Azure Application Inisights server SDK into my app, I noticed that my users metrics only showed a single user, even though I knew multiple users were using my application.

The Server side SDK alone is not sufficient to capture the session IDS and User IDS of users of the application.

https://docs.microsoft.com/en-us/azure/azure-monitor/app/website-monitoring

It appears Client Side monitoring must be installed before the user IDS are successfully handled. I am even getting user information without the server side SDK enabled, so it appears that the JavaScript SDK is able to handle lots of metrics on its own.

You can check to make sure that the Javascript SDK is working by examining network traffic in the browser debugger. See Screenshot from chrome below.

I think there is likely a way to have the server side count users of the app, but this is not enabled by default without the help of the javascript sdk. Examing the payload that the javascript sdk sends to azure, there is something called ai.user.id, ai.sesion.id, and ai.device.id.

These values are used to track and count users in the insights collected data.