kunal-chowdhury.com

.Net

Showing posts with label .Net. Show all posts

Microsoft has released a new update to Windows Template Studio. The latest version of Windows Template Studio 2.2 includes 3D Launcher feature, Wizard enhancements, improved documentations and many bug fixes.

 

To know more about the new changes and improvements part of this release, and to learn how to install this update, continue reading the post.

Published by on under .Net | CodeProject

ASP.NET Core is an open-source, cross platform, .NET centric web development framework. The latest version of .NET Core and ASP.NET Core has been released by Microsoft, as .NET Core 2.1.0 and ASP.NET Core 2.1.0, which you can now use in production environment.

 

Continue reading to know what has been changed in ASP.NET Core 2.1 and Entity Framework Core 2.1, along with the links to download.

Published by on under .Net | .NET Core

.NET Core is a free, open-source, cross platformed, managed software framework for Windows, Mac and Linux. The .NET Core 2.1, which was announced on 7th May 2018 during Microsoft Build, is now publicly available as production ready build.

 

If you want to know what's new in .NET Core 2.1 and from where to download the latest .NET Core SDK, checkout this post.

Published by on under .Net | .NET Core

If you are using Visual Studio 2017 version 15.3, it came with new improvements on top of C# 7.0, thus changing the version to 7.1. One of the new change in C# 7.1 is 'default' literal to avoid the redundant information while writing code.

 

In this post, we will learn about this improvement and will also cover how to use this. Continue reading to know about it.

Published by on under .Net | C#

In every programming language, when you want to loop through a collection, you use the 'for' loop in maximum scenarios. When writing code in Visual Studio, you might be aware that, there exist a code snippet to write the for-loop structure.

 

But you might not noticed that, there exist another code snippet to generate a reverse for-loop. Let's see what it is and how it operates.

Published by on under .Net | Tips

Visual Studio 2017 version 15.3, has been released, along with .NET Core 2.0 and Visual Studio for Mac (version 7.1) operating system. Microsoft, in a blog post, announced the availability of both the products. Visual Studio 2017 version 15.3 contains many new improvements and fixes.

 

.NET Core 2.0 is the second major version of .NET Core and this release focuses on performance improvements and expanded set of APIs available via .NET Standard 2.0.

Published by on under .Net | .NET Core

If you are using COM components on your .NET code, you might be already aware of the Marshal.ReleaseComObject and Marshal.FinalReleaseComObject, which are used to release the managed reference to Runtime Callable Wrapper (RCW) of the COM object.

 

If both are used to release COM objects from memory, and you are unsure which one to use, then this post will help you to learn the differences between the calls.

Published by on under .Net | C#

.NET Framework 4.7.1 is the next version of the .NET Framework, which is going to ship with Windows 10 Fall Creators Update. Microsoft, in a blog post, announced the availability of 'Early Access Preview Build' of .NET Framework 4.7.1.

 

It's now a feature complete build and running under testing phase. If you are a Windows Insider, you can start validating your applications running on the latest version.

Published by on under .Net | News

If you are using COM objects like Microsoft Excel or Microsoft PowerPoint, you may sometime notice that the COM instances are not releasing from the process list; even though you called Close(), Quit() on the application instance.

 

In case you faced the same issue, this post will guide you to find the Process ID (from the HWND) of that particular instance to take further action to release it.

Published by on under .Net | Excel

If you are using .NET Framework 2.0 or .NET Framework 3.5, and getting unexpected Runtime Error while repeatedly calling the System.Net.NetworkInformation.Ping.Send method from C# code, this is due to an issue which got resolved in .NET Framework 4.0 and above.

 

Today, we are going to discuss about the issue, the root cause and the workaround to resolve this issue targeting .NET Framework version older than 4.0.

Published by on under .Net | C#

It's often require to parse a string value to another data type, like integer, and there exists a confusion among the developers whether to use the Parse method or the TryParse method that the framework provides to us.

 

In this post, we will discuss the difference between each of those two methods and guide you to understand and pick the preferable one. Continue reading to know more.

Published by on under .Net | C#

Let's continue our 'Back to Basics' series. It's often an interview question to get an idea of the basic knowledge of a candidate. This is one of the simple question that an interviewer may ask during an interview and you should also know this while writing your code.

 

In this post, we are again going to discuss on the basics and this time we will learn the difference between null string and empty string.

Published by on under .Net | C#

StringCollection class is a spcialized collection type present in .NET Framework class libraries. The name itself represents it as a collection of strings. It exposes common methods and properties to manage string collection.

 

If you do not know about this class, in this post we are going learn about it's properties, methods and learn how to use it.

Published by on under .Net | C#

In last few articles we have discussed about NPOI libraries for .NET. There could be some cases, while reading Excel files, you may get an exception with 'The supplied spreadsheet seems to be Excel 5.0/7.0 (BIFF5) format. POI only supports BIFF8 format' as message.

 

In this quick tip, we are going to discuss about this issue, the way to handle it and the way to read the same Excel workbook content.

Published by on under .Net | C#

In the last two articles, we have learned how to use the NPOI library to read Excel 2007 (.xlsx) and Excel 97-2003 (.xls) file format. We have also discussed more about the APIs and shared the code snippet for you to understand it easily.

 

In this article, we will learn how to read Excel 95 and older workbooks easily using the free Apache NPOI libraries in your C#/.NET applications.

Published by on under .Net | C#

Recently, we have learned how to read Excel workbooks using the Microsoft Office COM APIs. As you may already know that the COM APIs are slow while performing operation, we will see another way to read the content which is faster.

 

In this article, we will learn how to read Excel 2007 workbooks using the Apache NPOI libraries which is available freely to use in your application.

Published by on under .Net | C#

You would like to build an application/addin that reads outlook mail and notify the user or would like to do some other operations based on your business need. For this, you will need to use the Microsoft Outlook APIs.

 

Today we are going to see, how this can be done using the Microsoft.Office.Interop.Outlook.dll to read the email from Outlook context and extract the data.

Published by on under .Net | C#

Along with Visual Studio 2017, Microsoft also released the .NET Core Tools 1.0, which are supported on Windows, Mac and Linux operating systems to build cross-platform applications. Though it is part of the Visual Studio 2017 installer, but you can also download them separately.

 

In this post, sharing the links to download the .NET Core SDK and .NET Core Runtime for different environment for easy access.

Published by on under .Net | .NET Core

Microsoft released the final version of Visual Studio 2017 and is currently available for download. This release brings a new lightweight and modular installation experience, that you will really love. This also brings a lot of new features to accelerate your development productivity.

 

Find the links below to download the latest version of the Visual Studio 2017, an IDE which every developer must need.

Published by on under .Net | C#