I wrote this article here about setting up GitHub in Visual Studio 2015 and felt it necessary to document the same in Visual Studio 2017. Here is how I setup GitHub source code management in Visual Studio 2017 Community. Install the GitHub extension for Visual Studio Create your GitHub repo and then login Create a […]
Read More →Archive for December, 2017
How to enable C# 7 in Visual Studio 2017
I was working with Visual Studio 2017 and found that 4.6.2 is not installed as default yet, so I wrote this article here about that. In that article I also point out that you need to install the System.ValueType NuGet package to the Tuples capabilities to work. This time I wanted to get the Pattern […]
Read More →Throwing and catching exceptions using try catch in C#
Catching exceptions within your code make a huge difference in how your program will be perceived from a user. If you do not catch the exception then in many cases your program will crash and be required to close and then reopened. However, if you catch exceptions you can handle them gracefully. You gracefully recover […]
Read More →How to create and search a Lucene.Net index in 4 simple steps using C#, Step 4
Display the results. To view the results we need to loop through the ScoreDoc array we created in Part3. We do this by iterating through it within a for loop. for (int i = 0; i < hits.Length; i++) { int docId = hits[i].doc; float score = hits[i].score; Lucene.Net.Documents.Document doc = searcher.Doc(docId); string result = […]
Read More →What’s new in IIS 10 – Microsoft Internet Information Services 10 New Features
With each version of Microsoft Windows Server comes a new version of Internet Information Services (IIS). With the recent release of Windows Server 2016 comes IIS version 10. Before I cover these new features, here are a few articles which I have already written which you may be interested in: What’s new in IIS 8.5 […]
Read More →.NET Core application, where is my EXE, how to publish
Short answer, there isn’t one. When you compile your .NET Core console application for example, you get a DLL. Then you execute it using the DOTNET command from the .NET Core SDK found here. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an […]
Read More →IIS on Nano server
If you have not seen my full post about all the IIS 10 new features, check it out here. NOTE that is it not recommended to run IIS on Nano. Instead you should be using the self-hosted .NET Core scenario. See here for more information on Server Core with IIS. Also, if you have not […]
Read More →How to redirect a WWW custom domain to a naked domain
I worte this article some time ago which discusses how to map a naked domain to an Azure App Service. An updated version can be found here. Also, check out these articles as well. How to redirect a WWW custom domain to a naked domain HTTPS only on Azure App Service Web Apps Mapping a […]
Read More →How to map a naked domain to an Azure App Service
A naked domain is one which has no WWW or subdomain before the actual domain name. For example, contoso.com is naked in contrast to www.contoso.com which is a standard internet address. I wrote this article some time ago and thought it was time for an upgrade, so here goes. Also, check out these articles as […]
Read More →How to call an async method from a console app main method
I find myself needing to look this code snippet up time to time so I thought I’d write it up. Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core […]
Read More →