Conesoft.Files
4.3.2
dotnet add package Conesoft.Files --version 4.3.2
NuGet\Install-Package Conesoft.Files -Version 4.3.2
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.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conesoft.Files" Version="4.3.2" />
<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.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Conesoft.Files, 4.3.2"
#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.3.2
#: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.3.2
#tool nuget:?package=Conesoft.Files&version=4.3.2
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.9)
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.DomainAreas
ASP.NET Core request Rewriter, allowing Areas to be accessed as domains |
|
|
Conesoft.LetsEncrypt
Letsencrypt Wildcard Generation using Dnsimple |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.2 | 244 | 8/8/2025 |
| 4.3.1 | 174 | 7/27/2025 |
| 4.3.0 | 259 | 4/20/2025 |
| 4.2.3 | 293 | 3/20/2025 |
| 4.2.2 | 234 | 3/20/2025 |
| 4.2.1 | 243 | 3/16/2025 |
| 4.2.0 | 239 | 3/16/2025 |
| 4.1.5 | 299 | 3/9/2025 |
| 4.1.4 | 215 | 2/26/2025 |
| 4.1.3 | 202 | 2/26/2025 |
| 4.1.2 | 233 | 2/25/2025 |
| 4.1.1 | 218 | 2/21/2025 |
| 4.1.0 | 249 | 2/19/2025 |
| 4.0.7 | 174 | 2/12/2025 |
| 4.0.6 | 308 | 2/5/2025 |
| 4.0.5 | 216 | 2/5/2025 |
| 4.0.4 | 147 | 2/5/2025 |
| 4.0.3 | 220 | 2/4/2025 |
| 4.0.2 | 162 | 2/4/2025 |
| 4.0.1 | 165 | 2/4/2025 |
| 4.0.0 | 169 | 2/4/2025 |
| 3.1.1 | 157 | 2/3/2025 |
| 3.1.0 | 199 | 1/29/2025 |
| 3.0.10 | 179 | 1/26/2025 |
| 3.0.9 | 172 | 1/26/2025 |
| 3.0.8 | 167 | 1/20/2025 |
| 3.0.7 | 244 | 1/12/2025 |
| 3.0.6 | 142 | 1/12/2025 |
| 3.0.5 | 546 | 11/25/2024 |
| 3.0.4 | 140 | 11/25/2024 |
| 3.0.3 | 171 | 11/24/2024 |
| 3.0.2 | 153 | 11/23/2024 |
| 3.0.1 | 152 | 11/23/2024 |
| 3.0.0 | 237 | 11/23/2024 |
| 2.1.3 | 219 | 9/22/2024 |
| 2.1.2 | 156 | 9/22/2024 |
| 2.1.1 | 331 | 7/21/2024 |
| 2.1.0 | 168 | 7/21/2024 |
| 2.0.8 | 151 | 7/20/2024 |
| 2.0.7 | 159 | 7/20/2024 |
| 2.0.6 | 175 | 7/20/2024 |
| 2.0.5 | 155 | 7/20/2024 |
| 2.0.4 | 156 | 7/20/2024 |
| 2.0.3 | 152 | 7/20/2024 |
| 2.0.2 | 144 | 7/20/2024 |
| 2.0.1 | 155 | 7/20/2024 |
| 2.0.0 | 151 | 7/20/2024 |
| 1.9.8 | 168 | 7/19/2024 |
| 1.9.7 | 164 | 7/19/2024 |
| 1.9.6 | 332 | 6/17/2024 |
| 1.9.5 | 162 | 6/17/2024 |
| 1.9.4 | 167 | 6/16/2024 |
| 1.9.3 | 358 | 6/1/2024 |
| 1.9.2 | 209 | 5/26/2024 |
| 1.9.0 | 229 | 5/25/2024 |
| 1.8.5 | 211 | 5/25/2024 |
| 1.8.4 | 195 | 5/24/2024 |
| 1.8.3 | 184 | 5/23/2024 |
| 1.8.2 | 359 | 8/24/2023 |
| 1.8.1 | 336 | 7/31/2023 |
| 1.8.0 | 237 | 7/31/2023 |
| 1.7.9 | 265 | 7/31/2023 |
| 1.7.8 | 247 | 7/31/2023 |
| 1.7.7 | 318 | 7/18/2023 |
| 1.7.6 | 504 | 4/27/2023 |
| 1.7.5 | 265 | 4/27/2023 |
| 1.7.4 | 286 | 4/25/2023 |
| 1.7.3 | 449 | 1/11/2023 |
| 1.7.2 | 434 | 1/11/2023 |
| 1.7.1 | 410 | 12/29/2022 |
| 1.7.0 | 434 | 1/8/2022 |
| 1.6.4 | 1,208 | 7/27/2021 |
| 1.6.3 | 485 | 7/19/2021 |
| 1.6.2 | 492 | 7/19/2021 |
| 1.6.1 | 466 | 7/19/2021 |
| 1.6.0 | 468 | 7/19/2021 |
| 1.5.21 | 901 | 7/4/2021 |
| 1.5.20 | 502 | 7/4/2021 |
| 1.5.18 | 527 | 7/4/2021 |
| 1.5.17 | 511 | 7/4/2021 |
| 1.5.16 | 543 | 7/4/2021 |
| 1.5.15 | 786 | 6/23/2021 |
| 1.5.14 | 504 | 6/23/2021 |
| 1.5.13 | 511 | 6/23/2021 |
| 1.5.12 | 503 | 6/23/2021 |
| 1.5.11 | 537 | 6/23/2021 |
| 1.5.10 | 531 | 6/23/2021 |
| 1.5.9 | 1,801 | 6/22/2021 |
| 1.5.8 | 653 | 6/21/2021 |
| 1.5.7 | 550 | 6/21/2021 |
| 1.5.6 | 551 | 6/21/2021 |
| 1.5.5 | 502 | 6/9/2021 |
| 1.5.4 | 522 | 6/6/2021 |
| 1.5.3 | 805 | 5/26/2021 |
| 1.5.2 | 548 | 5/20/2021 |
| 1.5.1 | 522 | 5/20/2021 |
| 1.5.0 | 513 | 5/17/2021 |
| 1.4.10 | 547 | 5/16/2021 |
| 1.4.6 | 598 | 5/16/2021 |
| 1.4.5 | 600 | 5/16/2021 |
| 1.4.4 | 541 | 5/16/2021 |
| 1.4.3 | 537 | 5/16/2021 |
| 1.4.2 | 733 | 4/26/2021 |
| 1.4.1 | 497 | 4/26/2021 |
| 1.4.0 | 549 | 4/26/2021 |
| 1.3.2 | 928 | 4/11/2021 |
| 1.3.1 | 1,008 | 3/17/2021 |
| 1.3.0 | 499 | 3/17/2021 |
| 1.2.5 | 515 | 3/16/2021 |
| 1.2.4 | 505 | 3/16/2021 |
| 1.2.3 | 512 | 3/16/2021 |
| 1.2.2 | 521 | 3/16/2021 |
| 1.2.1 | 531 | 3/16/2021 |
| 1.2.0 | 576 | 1/4/2021 |
| 1.1.2 | 2,408 | 11/9/2020 |
| 1.1.1 | 641 | 11/9/2020 |
| 1.0.15 | 608 | 11/9/2020 |
| 1.0.14 | 623 | 11/9/2020 |
| 1.0.13 | 637 | 11/9/2020 |
| 1.0.12 | 814 | 10/9/2020 |
| 1.0.11 | 820 | 9/10/2020 |
| 1.0.10 | 1,158 | 9/8/2020 |
| 1.0.9 | 666 | 8/30/2020 |
| 1.0.8 | 663 | 8/5/2020 |
| 1.0.7 | 1,127 | 7/19/2020 |
| 1.0.6 | 667 | 7/19/2020 |
| 1.0.5 | 735 | 5/2/2020 |
| 1.0.4 | 716 | 5/2/2020 |
| 1.0.3 | 651 | 5/2/2020 |
| 1.0.2 | 642 | 5/2/2020 |
| 1.0.1 | 661 | 5/2/2020 |
| 1.0.0 | 885 | 5/2/2020 |