Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 15, 2024
2 parents c16da78 + b091810 commit 5be69c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Binary file added files/archive/empty.nupkg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649</NoWarn>
<Version>8.4.0</Version>
<NoWarn>CS1591;CS0649;NU5119</NoWarn>
<Version>8.5.0</Version>
<LangVersion>preview</LangVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
<Description>A collection of minimal binary files.</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageVersion Include="NUnit" Version="4.2.2" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="Polyfill" Version="7.0.0" />
<PackageVersion Include="ProjectDefaults" Version="1.0.138" />
<PackageVersion Include="ProjectDefaults" Version="1.0.139" />
<PackageVersion Include="System.Collections.Immutable" Version="8.0.0" />
<PackageVersion Include="System.Memory" Version="4.5.5" />
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
Expand Down
2 changes: 1 addition & 1 deletion src/EmptyFiles.Tool/EmptyFiles.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackAsTool>True</PackAsTool>
<Description>.NET Core Global Tool for creating minimal binary files</Description>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<NoWarn>NU5118</NoWarn>
<NoWarn>$(NoWarn);NU5118;NU5119</NoWarn>
<RollForward>LatestMajor</RollForward>
</PropertyGroup>
<ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,23 @@ public void UseFile()
#endregion
}

#if NET9_0

[Test]
public async Task WriteExtensions()
{
var md = Path.Combine(SolutionDirectoryFinder.Find(), "extensions.include.md");
File.Delete(md);
using var writer = File.CreateText(md);
await using var writer = File.CreateText(md);
await WriteCategory(writer, "Archive", AllFiles.Archives);
await WriteCategory(writer, "Document", AllFiles.Documents);
await WriteCategory(writer, "Image", AllFiles.Images);
await WriteCategory(writer, "Sheet", AllFiles.Sheets);
await WriteCategory(writer, "Slide", AllFiles.Slides);
}

#endif

static async Task WriteCategory(StreamWriter writer, string category, IReadOnlyDictionary<string, EmptyFile> files)
{
await writer.WriteLineAsync("");
Expand Down

0 comments on commit 5be69c7

Please sign in to comment.