Author Archives: Abhijit Jana

About Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

Did you know – you can just “copy the code” as well from C# Interactive Window ?

The Interactive Window in Visual Studio is a great utility to play around the code, language features, API’s and other .NET framework features.   The Interactive Window also support features like IntelliSense, syntax highlighting and navigating through executed commands. Previously we have seen several tips around the C# Interactive Window, but there is one very interesting feature you may overlooked, in fact, I missed that as well.   The Interactive Window, allows you to copy the source code only (Copy Code), so that you can directly paste them back to your main code editor.

Continue reading

How To customize “Structure Guide Lines” Colors in Visual Studio 2017 ?

In Visual Studio 2017   dotted structure guide lines in your code, between the curly braces ({}), helps in identifying the individual blocks easily.  Also, hover over on the lines, it will shows the tooltip with opening of that block and its parents. In the previous post we have seen how to Turning On/Off “Structure Guide Lines” in Visual Studio 2017 .  The Structure Guide Lines in the Visual Studio editor displayed with a light gray color. While this is the default color provided with Visual Studio, you can customize it if you want.

Continue reading

Linking Team Services (VSTS) accounts with your Azure account for Continuous Integration

Before setting up the Continuous Integration, you have to make sure your Visual Studio Team Services (VSTS) account is linked with your Azure subscription. I came across this for one of my personal account while trying to setup the Continuous Integration for Azure Bot Service.  In the previous we discussed about Setting Up Continuous Integration for Azure Bot Service , and during the process of setting up, the first steps was selecting the VSTS Sources.

Continue reading

Setting Up Continuous Integration for Azure Bot Service

Azure Bot Service is the Bot-Service powered by the Microsoft Bot Framework and Microsoft Azure. It enables rapid intelligent bot development. In one of my previous post I talked about how we can leverage the Azure Bot Services for Rapid Development of Intelligent Bot. We have seen how quickly we can develop a Bot using Azure Bot Service editor and deploy a Bot. Now, if you want to take a step further and want to manage your code with Visual Studio or any other IDE, and push it once the development is done, you need to configure the Continuous Integration (CI) . With the CI enabled,  as soon as the development is done and code is pushed to source control, it will be deployed to Azure Automatically.

Continue reading

Persisting the “Find All references” results in Visual Studio 2017

If you are using Visual Studio 2017, by now you must have noticed, the Find All Reference window comes with brand new flavor. Starting from Syntax colorization, grouping of the results based on several categorizations and along with code snippet preview. You can even set the context of references such as entire solution or current project.

Continue reading

Simplified Process Attaching – Reattach to Process in Visual Studio 2017

Attaching to a process during debugging, is one of the very common task. We can attach the Visual Studio debugger to a running process by navigating from Debug >  Attach to Process (Ctrl+Alt+P) and then select specific process from the Attach to Process dialog box. This could be a repetitive process during the development and debugging of your application. You may need to stop the debugging, then attach again next time with some modification in code. Visual Studio simplified this process attaching mechanism by introducing Reattach to Process.

Continue reading

Real Time Telemetry for your Azure Function App using Application Insights

Application Insights helps us to track applications health in real time. You can track your application availability, performance issues, user’s session and diagnose crashes faster than ever. It provides a real-time dashboard for your app to monitor your application. It is fast, very easy to configure and provide very powerful insights for your application. We can capture the real-time telemetry using Application Insights for our Azure Function App as well. There are several ways to do that integration.

Integrate Application Insights While Creating your Azure Function App

 Navigate and Login to your Azure Portal, From New ->  Compute ->  Select Function App, or Search Function App in the Search the marketplace box. Then Create the Function App, by providing all required details including App Name, Subscription Details, Hosting Plan etc. 

To enable the Application Insight, set the last option  “Application Insights“ to ON.

ApplicationInsights

Fig:  Integrate Application Insight while creating Azure Function App

With that, along with creating your Azure Function App, you will have an Application Insight created with mapped with current Azure Function.

Must Read : 5 simple steps to create and test your first Azure Function App

 Using existing Application Insights for Azure Function App

If you have Application Insight already created and you want to integrate it with your Azure Function App, you can do that easily post your Azure Function is created.

Once you Azure Function is created, and you don’ t have configuration done, you will find Configured Features is empty under Overview Tab.

newfunctionappsettings

Fig: Configuration Tab

 

Navigate to “Platform Features” Tab and under General Settings, select “Applications Settings

AppSettingsFig : Application Settings

There along with other settings add a new entry for Application Insights

APPINSIGHTS_INSTRUMENTATIONKEY = <Instrumentation Key>

Follow the Steps to get the Instrumentation Key for an Application Insights: Application Insights Settings –>  Properties –>  Instrumentation Key

instrumentationkey

Fig: Getting Instrumentation Key

Must Read : Getting an Application Insights Instrumentation Key inside Visual Studio itself

Once Application Settings is updated, you may go back again to Overview Tab. Now you will find “Application Insights” is listed under Configured Features. It may take a while to appear in this list.

appinsightadded

Fig: Azure Function App Configuration List

Click on the Application Insights link, it will open the Application Insight Dashboard from where you can start monitoring and review all telemetry data.

AppinsightsForAzureFunction

Fig: Application Insights Dashboard for Azure Function App

5 simple steps to create and test your first Azure Function App

Azure Functions let us execute our code in a serverless environment. This does not require create a solution or publish it as Azure Apps. In short, just focus on code and your functional aspect, and don’t need to worry about infrastructure. Azure Function, can be used in different business scenarios and with different integration aspects. In this post let’s try and create a basic Azure Function from Azure portal.

Continue reading

Real Time Telemetry for your BoT using Application Insights

Application Insights helps us to track applications health in real time. You can track your application availability, performance issues, user’s session and diagnose crashes faster than ever. It’s provides a real time dashboard for your app to monitor your application. It is fast, very easy to configure and provide very powerful insights for your application. We can capture the real time telemetry using Application Insights for our BoT as well. There are several ways to do that integration…

Continue reading

Rapid Development of Intelligent Bot Using Azure Bot Service

Azure Bot Service is the Bot-Service powered by the Microsoft Bot Framework and Microsoft Azure. It enables rapid intelligent bot development. In one of my previous post I talked about how we can leverage the Bot Framework and Build Your First Bot using Microsoft Bot Framework.  With this Bot cloud service, you can build, connect, deploy and manage intelligent bots faster than ever. Be it is development, Configuration, connect with an of the Channel, adding intelligence everything! can be done in a single place – in fact over few clicks.

Continue reading