.NET CLI Archives - Code Maze https://code-maze.com/category/net-cli/ Learn. Code. Succeed. Sun, 28 Apr 2024 12:40:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.5 https://code-maze.com/wp-content/uploads/2020/01/Code-Maze-Favicon.png .NET CLI Archives - Code Maze https://code-maze.com/category/net-cli/ 32 32 Using the CLI to Build and Run .NET Applications https://code-maze.com/dotnet-using-the-cli-to-build-and-run-net-applications/ https://code-maze.com/dotnet-using-the-cli-to-build-and-run-net-applications/#respond Sun, 17 Dec 2023 23:01:14 +0000 https://code-maze.com/?p=101361 In this article, we will learn more about how to use the CLI to build and run .NET applications. Whether taking our first steps in cross-platform development based on the .NET common language runtime (CLR), or brushing up on some basics to explore a different way to work, we are in the right place. For […]

The post Using the CLI to Build and Run .NET Applications appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-using-the-cli-to-build-and-run-net-applications/feed/ 0
How to Switch Between .NET SDK Versions https://code-maze.com/dotnet-switch-between-sdk-versions/ https://code-maze.com/dotnet-switch-between-sdk-versions/#respond Wed, 06 Dec 2023 07:16:59 +0000 https://code-maze.com/?p=101157 In this article, we will learn how to switch between .NET SDK versions in our projects. By default, .NET uses the latest SDK installed on a given machine, even when developing with an earlier .NET runtime version. Actually, we can benefit from the latest SDK features and improvements while we are still able to use […]

The post How to Switch Between .NET SDK Versions appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-switch-between-sdk-versions/feed/ 0
Execute a PowerShell Script in C# https://code-maze.com/csharp-run-powershell-script/ https://code-maze.com/csharp-run-powershell-script/#comments Thu, 22 Jun 2023 06:00:57 +0000 https://code-maze.com/?p=91684 In this article, we’ll learn how to execute a PowerShell script in C# using the ProcessStartInfo class from System.Diagnostics namespace and PowerShell classes from the System.Management.Automation namespace, which is available in PowerShell.SDK. Let’s see how to do that! Use the ProcessStartInfo Class to Execute a PowerShell Script in C# .NET provides users with a ProcessStartInfo class […]

The post Execute a PowerShell Script in C# appeared first on Code Maze.

]]>
https://code-maze.com/csharp-run-powershell-script/feed/ 1
How to Execute CLI Applications From C# https://code-maze.com/csharp-execute-cli-applications/ https://code-maze.com/csharp-execute-cli-applications/#respond Wed, 01 Feb 2023 13:16:47 +0000 https://drafts.code-maze.com/?p=80745 In this article, we will learn how to execute CLI applications in C# using a built-in class called Process and using open-source libraries. We will cover how we can execute CLI, how we can check if the CLI execution was successful, and how we can react to the different outputs of CLI. Throughout this article, […]

The post How to Execute CLI Applications From C# appeared first on Code Maze.

]]>
https://code-maze.com/csharp-execute-cli-applications/feed/ 0
Using dotnet format Command to Format the C#/.NET Code https://code-maze.com/dotnet-format-command-csharp/ https://code-maze.com/dotnet-format-command-csharp/#respond Tue, 19 Apr 2022 06:35:55 +0000 https://drafts.code-maze.com/?p=67280 In this article, we are going to look into a global .NET tool called dotnet format, that helps with code styling in our .NET applications. We’ll explore the basic usage, how the role of .editorconfig is important, and how to make the best use of the dotnet format in our development process. To kick things […]

The post Using dotnet format Command to Format the C#/.NET Code appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-format-command-csharp/feed/ 0
How to Create and Publish a NuGet Package Using Visual Studio https://code-maze.com/publish-nuget-package-using-visual-studio/ https://code-maze.com/publish-nuget-package-using-visual-studio/#comments Fri, 18 Feb 2022 06:54:23 +0000 https://drafts.code-maze.com/?p=63973 In the previous article, we’ve learned How to Create and Publish a NuGet Package with .NET CLI. In this article, we are going to discuss how to create and publish a NuGet package using Visual Studio. Along with that, we’ll explore a few additional options like how to provide a readme file, a license file, […]

The post How to Create and Publish a NuGet Package Using Visual Studio appeared first on Code Maze.

]]>
https://code-maze.com/publish-nuget-package-using-visual-studio/feed/ 4
How to Create and Publish a NuGet Package with .NET CLI https://code-maze.com/dotnet-nuget-create-publish/ https://code-maze.com/dotnet-nuget-create-publish/#comments Fri, 21 Jan 2022 06:00:18 +0000 https://drafts.code-maze.com/?p=61972 In this article, we are going to talk about how to create and publish a NuGet package from .NET Class Library using .NET CLI. Let’s get going. NuGet Workflow Most of us working on .NET projects might be already familiar with NuGet and would have added NuGet references to our projects. However, not everyone is […]

The post How to Create and Publish a NuGet Package with .NET CLI appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-nuget-create-publish/feed/ 6
How to Check if .NET Is Already Installed https://code-maze.com/dotnet-cli-versions-sdk-runtime/ https://code-maze.com/dotnet-cli-versions-sdk-runtime/#comments Tue, 04 Jan 2022 04:45:20 +0000 https://drafts.code-maze.com/?p=61107 In this article, we will learn how to check if .NET is already installed on both Windows and Linux. Some developers find it difficult to understand which components of .NET need to be installed before the development starts. This is often the case with beginners. Understanding .NET SDK and .NET Runtime The .NET projects are […]

The post How to Check if .NET Is Already Installed appeared first on Code Maze.

]]>
https://code-maze.com/dotnet-cli-versions-sdk-runtime/feed/ 4