mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Simplify sample code
This commit is contained in:
10
samples/SampleHelper.cs
Normal file
10
samples/SampleHelper.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user