Simplify sample code

This commit is contained in:
Caelan Sayler
2024-03-14 18:37:39 +00:00
parent fa95058b78
commit 2b11f35b99
10 changed files with 67 additions and 84 deletions

10
samples/SampleHelper.cs Normal file
View File

@@ -0,0 +1,10 @@
using System.Linq;
using System.Reflection;
internal static class SampleHelper
{
public static string GetReleasesDir() => Assembly.GetEntryAssembly()
.GetCustomAttributes<AssemblyMetadataAttribute>()
.Where(x => x.Key == "VelopackSampleReleaseDir")
.Single().Value;
}