Templ 1.0.1

dotnet add package Templ --version 1.0.1
                    
NuGet\Install-Package Templ -Version 1.0.1
                    
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="Templ" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Templ" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Templ" />
                    
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 Templ --version 1.0.1
                    
#r "nuget: Templ, 1.0.1"
                    
#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.
#addin nuget:?package=Templ&version=1.0.1
                    
Install Templ as a Cake Addin
#tool nuget:?package=Templ&version=1.0.1
                    
Install Templ as a Cake Tool

Templ - Lightweight Cross-platform Temporary File Handler

Build Status

Overview

Templ is a lightweight cross-platform package designed to handle temporary files in your project. It automatically cleans up temporary data like in-memory files, session-based files, or any transient cache, allowing you to focus on more important tasks.

No more worries about cleaning up junk files after your application finishes working—let Templ handle it for you!

No any third party dependencies, no extra DLLs, no bloatware. Just a simple and effective solution for managing temporary files.

Features

  • Easy integration with your existing project
  • Automatically cleans up temporary files
  • In-memory, session-based, and transient cache management

Installation

You can install Templ via NuGet.

Usage

using Templ;

var tempFile = new TempFile("prefix", "extension");
string tempFilePath = tempFile.FilePath;

Templ objects are disposable but even if you don't dispose them Templ will handle it for you!

Product Compatible and additional computed target framework versions.
.NET 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.
  • 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.0.1 191 5/12/2025