Visual Studio : Using Publish tool on the ASP.NET Core Web App Project

After we create the ASP.NET Core application in Visual Studio, we can use the Visual Studio Publish Tool to create binaries and other set of files that are nedeed to deploy and run our app. The tool supports different publishing methods, such as folder and FTP among others. In this article, we are going to show how to publish ASP.NET Core 3.1 Web App binaries to a local folder.

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.

ASP.NET MVC : Installing AdminLTE dashboard to replace Bootstrap template

When creating a new ASP.NET MVC project in Visual Studio, the project will use a Bootstrap front-end framework by default. But there are more sophisticated templates with the extended functionality available. I wanted to use one of those instead of the one provided by Visual Studio. I discovered AdminLTE, a dashboard & control panel theme also built on top of the Bootstrap. This article will show you how I replaced the default Bootstrap framework with the AdminLTE template in an ASP.NET MVC project.

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 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 IntelliSense canvas context problem in Visual Studio:

When coding in JavaScript, I prefer using Visual Studio IDE due to its JavaScript IntelliSense and debugging capabilities. But recently, when I started to experiment with canvas, I noticed something strange. As you might know, to draw and manipulate graphics on canvas element, you first need to get the canvas context. In some instances, the IntelliSense is not working on canvas context and as a result, the list of suggestions is missing all the context methods and properties you would expect. This article will show how to fix that.