Posts

Showing posts from March, 2023

How to create Microsoft Azure CI CD Pipeline for IIS Server?

Image
To create an Azure CI/CD pipeline for an IIS server, you can follow these steps: 1. Create an Azure DevOps account or sign in to an existing one. 2. Create a new project in Azure DevOps.  3. In the project, create a new Azure Pipeline and choose the appropriate template for your IIS server (e.g., ASP.NET, .NET Desktop, or Windows Machine). 4. Configure your build pipeline by adding tasks such as restoring NuGet packages, building your code, running tests, and publishing artifacts. 5. Create a release pipeline that will deploy your code to your IIS server. To do this, add an IIS web app deploy task to your release pipeline, and configure it with the appropriate settings (e.g., target server, website name, application pool, etc.). Fore more details :

What is new features and improvements in C# Language Version 11?

Image
C# 11 was released in 2021 and includes several new features and improvements. Here are some of the key new features introduced in C# 11. What's new in C# 11? 1. Raw string literals 2. Required members 3. List patterns extend pattern matching to match sequences of elements in a list or an array. 4. File local types. 5. Auto-default structs. For more details :

How to Create Custom TagHelper in ASP.Net MVC 6?

Image
To create a custom TagHelper in ASP.NET MVC 6, follow these steps: 1. Create a new class that inherits from the TagHelper class. For example: 2. Add a [HtmlTargetElement] attribute to the class to specify which HTML elements the tag helper should target. For example: 3. Override the Process method and modify the TagHelperOutput object as necessary to generate the desired HTML output. For example: 4. Build the project to compile the tag helper. 5. In the Razor view where you want to use the custom tag helper, add a @addTagHelper directive at the top of the file to reference the assembly that contains the tag helper. For example: 6. Use the custom tag helper in your HTML code by adding the tag name and any necessary attributes. For example: When the Razor view is rendered, the custom tag helper will be invoked and modify the output as specified in the Process method. For Check how can we to do using practically check this link:  

How to configure Naming Convention rules in Visual Studio?

Image
Visual Studio allows you to configure naming convention rules for various types of code elements such as classes, methods, variables, etc. These rules can help you to maintain a consistent naming style throughout your codebase, which can make it easier to read and understand. To configure naming convention rules in Visual Studio, follow these steps: 1. Open Visual Studio and go to the Tools menu. 2. Select Options from the drop-down menu. 3. In the Options window, select Text Editor from the left-hand menu. 4. Expand the C# (or your desired language) option, and select Code Style. 5. Under Naming, you will see options for different types of code elements such as classes, methods, variables, etc. 6. For each type of code element, you can set the naming convention rule by selecting the dropdown menu next to the element and selecting the desired rule. 7. You can also set custom naming convention rules by selecting the Custom option and entering your own naming convention. ...