ktsu.CodeBlocker 1.0.30

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package ktsu.CodeBlocker --version 1.0.30
                    
NuGet\Install-Package ktsu.CodeBlocker -Version 1.0.30
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ktsu.CodeBlocker" Version="1.0.30" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ktsu.CodeBlocker" Version="1.0.30" />
                    
Directory.Packages.props
<PackageReference Include="ktsu.CodeBlocker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ktsu.CodeBlocker --version 1.0.30
                    
#r "nuget: ktsu.CodeBlocker, 1.0.30"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ktsu.CodeBlocker@1.0.30
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ktsu.CodeBlocker&version=1.0.30
                    
Install as a Cake Addin
#tool nuget:?package=ktsu.CodeBlocker&version=1.0.30
                    
Install as a Cake Tool

CodeBlocker

An IndentedTextWriter that makes generating code blocks easier.

Usage

namespace CodeBlockerExample;

using ktsu.CodeBlocker;

internal class Example
{
	public static void GenerateCode()
	{
		using var codeBlocker = CodeBlocker.Create();

		codeBlocker.WriteLine("using System;");
		codeBlocker.NewLine();
		codeBlocker.WriteLine("namespace Example");
		using (new Scope(codeBlocker))
		{
			codeBlocker.WriteLine("public class Example");
			using (new Scope(codeBlocker))
			{
				codeBlocker.WriteLine("public static void Main()");
				using (new Scope(codeBlocker))
				{
					codeBlocker.WriteLine("Console.WriteLine(\"Hello, World!\");");
				}
			}
		}

		Console.WriteLine(codeBlocker.ToString());
	}
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2-pre.17 118 5/20/2025
1.1.2-pre.15 76 5/17/2025
1.1.2-pre.14 126 5/16/2025
1.1.2-pre.13 201 5/15/2025
1.1.2-pre.12 200 5/14/2025
1.1.2-pre.11 202 5/13/2025
1.1.2-pre.10 226 5/12/2025
1.1.2-pre.9 164 5/11/2025
1.1.2-pre.8 112 5/10/2025
1.1.2-pre.7 47 5/9/2025
1.1.2-pre.6 118 5/8/2025
1.1.2-pre.5 120 5/7/2025
1.1.2-pre.4 118 5/6/2025
1.1.2-pre.3 120 5/5/2025
1.1.2-pre.2 118 5/4/2025
1.1.2-pre.1 120 5/4/2025
1.1.1 116 5/4/2025
1.1.1-pre.2 56 4/26/2025
1.1.1-pre.1 118 4/4/2025
1.1.0 143 3/30/2025
1.0.32-pre.2 76 3/29/2025
1.0.32-pre.1 458 3/25/2025
1.0.31 125 2/17/2025
1.0.31-pre.3 84 2/6/2025
1.0.31-pre.2 69 2/5/2025
1.0.31-pre.1 66 2/5/2025
1.0.30 109 1/2/2025
1.0.30-pre.29 69 2/3/2025
1.0.30-pre.28 70 2/3/2025
1.0.30-pre.27 73 2/1/2025
1.0.30-pre.26 65 1/30/2025
1.0.30-pre.25 72 1/28/2025
1.0.30-pre.24 66 1/26/2025
1.0.30-pre.23 60 1/24/2025
1.0.30-pre.22 61 1/22/2025
1.0.30-pre.21 68 1/20/2025
1.0.30-pre.20 57 1/18/2025
1.0.30-pre.19 61 1/16/2025
1.0.30-pre.18 43 1/14/2025
1.0.30-pre.17 54 1/13/2025
1.0.30-pre.16 62 1/11/2025
1.0.30-pre.15 56 1/10/2025
1.0.30-pre.14 60 1/10/2025
1.0.30-pre.13 57 1/8/2025
1.0.30-pre.12 63 1/7/2025
1.0.30-pre.11 66 1/6/2025
1.0.30-pre.10 82 1/4/2025
1.0.30-pre.9 72 1/3/2025
1.0.30-pre.8 69 1/3/2025
1.0.30-pre.7 71 1/3/2025
1.0.30-pre.6 79 1/2/2025
1.0.30-pre.5 96 12/31/2024
1.0.30-pre.4 65 12/29/2024
1.0.30-pre.3 66 12/28/2024
1.0.30-pre.2 72 12/27/2024
1.0.30-pre.1 63 12/27/2024
1.0.29-pre.1 61 12/27/2024
1.0.28 104 12/26/2024
1.0.27 102 12/26/2024
1.0.26 105 12/26/2024
1.0.25 107 12/26/2024
1.0.24 103 12/26/2024
1.0.23 106 12/26/2024
1.0.22 107 12/26/2024
1.0.21 102 12/23/2024
1.0.20 102 12/23/2024
1.0.19 114 12/22/2024
1.0.18 107 12/22/2024
1.0.17 110 12/4/2024
1.0.16 111 12/2/2024
1.0.15 112 11/30/2024
1.0.14 108 11/26/2024
1.0.13 118 11/20/2024
1.0.12 116 11/13/2024
1.0.11 108 11/1/2024
1.0.10 120 10/4/2024
1.0.10-pre.1 68 12/27/2024
1.0.9 115 9/19/2024
1.0.8 99 9/19/2024
1.0.7 102 9/19/2024
1.0.6 107 9/19/2024
1.0.5 115 9/18/2024
1.0.4 108 9/18/2024
1.0.3 109 9/18/2024
1.0.2 115 9/18/2024
1.0.1 124 9/14/2024
1.0.0 130 9/14/2024

## v1.0.30 (unknown)

Changes since v1.0.30-pre.6:

- Add automation scripts for metadata management and versioning ([@Matthew Edmondson](https://github.com/Matthew Edmondson))

## v1.0.29-pre.1 (patch)

Changes since v1.0.28:

- Renamed metadata files ([@Matthew Edmondson](https://github.com/Matthew Edmondson))

## v1.0.24 (patch)

Changes since v1.0.23:

- Replace LICENSE file with LICENSE.md and update copyright information ([@Matthew Edmondson](https://github.com/Matthew Edmondson))

## v1.0.1 (patch)

Changes since v1.0.0:

- Migrate ktsu.io to ktsu namespace ([@Matt Edmondson](https://github.com/Matt Edmondson))

## v1.0.0 (major)

Changes since 0.0.0.0:

- Add github package support ([@matt-edmondson](https://github.com/matt-edmondson))
- Add XML documentation ([@matt-edmondson](https://github.com/matt-edmondson))
- Assign dependabot PRs to matt ([@matt-edmondson](https://github.com/matt-edmondson))
- Avoid double upload of symbols package ([@matt-edmondson](https://github.com/matt-edmondson))
- Create dependabot-merge.yml ([@matt-edmondson](https://github.com/matt-edmondson))
- Create VERSION ([@matt-edmondson](https://github.com/matt-edmondson))
- Dont try to push packages when building pull requests ([@matt-edmondson](https://github.com/matt-edmondson))
- Enable dependabot and sourcelink ([@matt-edmondson](https://github.com/matt-edmondson))
- Fix code style errors ([@matt-edmondson](https://github.com/matt-edmondson))
- Initial commit after extricating out of Schema Tools project ([@Matt Edmondson](https://github.com/Matt Edmondson))
- Migrate from .project.props to Directory.Build.props ([@matt-edmondson](https://github.com/matt-edmondson))
- Read from AUTHORS file during build ([@matt-edmondson](https://github.com/matt-edmondson))
- Read from VERSION when building ([@matt-edmondson](https://github.com/matt-edmondson))
- Read PackageDescription from DESCRIPTION file ([@matt-edmondson](https://github.com/matt-edmondson))
- Set GenerateDocumentationFile ([@matt-edmondson](https://github.com/matt-edmondson))
- Update .editorconfig ([@matt-edmondson](https://github.com/matt-edmondson))
- Update build config ([@matt-edmondson](https://github.com/matt-edmondson))
- Update build scripts ([@matt-edmondson](https://github.com/matt-edmondson))
- Update description and readme ([@matt-edmondson](https://github.com/matt-edmondson))
- Update Directory.Build.props ([@matt-edmondson](https://github.com/matt-edmondson))
- Update Directory.Build.targets ([@matt-edmondson](https://github.com/matt-edmondson))
- Update dotnet.yml ([@matt-edmondson](https://github.com/matt-edmondson))
- Update LICENSE ([@matt-edmondson](https://github.com/matt-edmondson))
- Update nuget.config ([@matt-edmondson](https://github.com/matt-edmondson))