Conesoft.Files
4.0.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Conesoft.Files --version 4.0.7
NuGet\Install-Package Conesoft.Files -Version 4.0.7
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="Conesoft.Files" Version="4.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conesoft.Files" Version="4.0.7" />
<PackageReference Include="Conesoft.Files" />
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 Conesoft.Files --version 4.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 4.0.7"
#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 Conesoft.Files@4.0.7
#: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=Conesoft.Files&version=4.0.7
#tool nuget:?package=Conesoft.Files&version=4.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Conesoft.Files
https://www.nuget.org/packages/Conesoft.Files/
tiny example
adapted from realworld use
var logfile = Directory.From("SomeRoot") / "Scheduler" / Filename.From(DateTime.Today.ToShortDateString(), "md");
await logfile.AppendText($"- **{task.GetType().Name}** *executed* ");
instead of
var logPath = System.IO.Path.Combine("SomeRoot", "Scheduler", $"{DateTime.Today.ToShortDateString()}.md");
await System.IO.File.AppendAllTextAsync(logPath, $"- **{task.GetType().Name}** *executed* ");
reading/writing objects
var data = await File.From("some\path.json").ReadFromJson<SomeType>();
File.From("some\other path.json").WriteAsJson(data);
temporary directories
{
using var temp = Directory.Common.Temporary();
await (temp / Filename.From("some temporary", "tmp")).WriteBytes(somebytes);
// temporary directory gets deleted when out of scope
}
watching a folder
void PrettyPrint(string title, File[] files)
{
if(files.Length > 0)
{
Console.WriteLine($"{title} ({files.Length})");
foreach(var file in files)
{
Console.WriteLine(file);
}
Console.WriteLine();
}
}
await foreach(var files in Directory.From("some\path"))
{
PrettyPrint("ALL FILES", files.All);
PrettyPrint("ADDED FILES", files.Added);
PrettyPrint("CHANGED FILES", files.Changed);
PrettyPrint("DELETED FILES", files.Deleted);
}
| Product | Versions 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
- Conesoft.Tools (>= 2.1.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Conesoft.Files:
| Package | Downloads |
|---|---|
|
Conesoft.Users
little library allowing simple cookie based user authentication without a backing database |
|
|
Conesoft.LetsEncrypt
Letsencrypt Wildcard Generation using Dnsimple |
|
|
Conesoft.DomainAreas
ASP.NET Core request Rewriter, allowing Areas to be accessed as domains |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.2 | 270 | 8/8/2025 |
| 4.3.1 | 205 | 7/27/2025 |
| 4.3.0 | 281 | 4/20/2025 |
| 4.2.3 | 321 | 3/20/2025 |
| 4.2.2 | 264 | 3/20/2025 |
| 4.2.1 | 271 | 3/16/2025 |
| 4.2.0 | 268 | 3/16/2025 |
| 4.1.5 | 332 | 3/9/2025 |
| 4.1.4 | 242 | 2/26/2025 |
| 4.1.3 | 231 | 2/26/2025 |
| 4.1.2 | 259 | 2/25/2025 |
| 4.1.1 | 241 | 2/21/2025 |
| 4.1.0 | 284 | 2/19/2025 |
| 4.0.7 | 197 | 2/12/2025 |
| 4.0.6 | 336 | 2/5/2025 |
| 4.0.5 | 244 | 2/5/2025 |
| 4.0.4 | 178 | 2/5/2025 |
| 4.0.3 | 254 | 2/4/2025 |
| 4.0.2 | 185 | 2/4/2025 |
| 4.0.1 | 193 | 2/4/2025 |
Loading failed