Visual Studio : How to convert JSON to a C# class using Paste Special

Recently, I wanted to create a C# project where I would process the JSON response from the cryptocurrency-related API endpoints. I was wondering what was the best way to quickly create a strongly typed model class from a JSON object and if there is a way to generate this automatically from the JSON data instead of writing the model class manually. It turns out there is and in this article, we are going to examine two solutions for this problem.

WinForms : How to create a Windows Forms Project in Visual Studio

This article is intended for beginners and will demonstrate how to create a Windows Forms / WinForms project using Visual Studio 2019 Community Edition, which is a free version of Visual Studio. The WinForms application created by Visual Studio will contain only a main form with no controls. Then in the future article, we will make this application a bit more interesting and useful.

ASP.NET MVC : How to fix razor view error - type or namespace could not be found

Recently, I was working on an ASP.NET MVC project using Visual Studio and the web project had strongly-typed views that were using model classes located in another class project in the same solution. The project itself got built successfully and was running fine until it tried to show those views, it returned the Compilation Error saying that the type or namespace name could not be found. In this article, I will show you what I tried and how I finally solved the problem.

VS : How to solve Could not load file or assembly Newtonsoft.Json error

I was working on my ASP.NET MVC application recently and I needed to do some serialization/deserialization work on JSON data. I chose to use Json.NET, a very popular JSON framework for .NET. The problem was that when I ran the application, I was getting an exception telling me that the Newtonsoft.Json could not be loaded due to the assembly's manifest definition not matching the assembly reference. In this article, I will show you what I tried and how I managed to solve the problem.

How to fix stuck Visual Studio 2015 installation problem

Visual Studio Community 2015 is the free edition of Visual Studio, so I decided to install it on my computer. Setup contains lots of components, so installation running considerable amount of time was expected, but after 3 hours, it was only 30% finished. Another hour later, the setup was still trying to install the same package. It seemed that the installation got stuck. In this post I will share how I tried to solve the problem and what eventually worked.

VS : How to solve error - The project file could not be loaded. Could not find a part of the path

I recently rearranged the content of my working folder which is used to store all my coding-related projects. But after doing that I had a problem loading the solution of my WinForm project in Visual Studio as I received an error telling me about a problem with a project file.

The exact error message in the Output window was:

error  : The project file could not be loaded. Could not find a part of the path...

Another way you can encounter this error is if you renamed your project folder and sometimes you can get this error without moving or renaming anything at all. In this article, you will be shown how to solve this problem for all those cases.